Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.11.0
-
None
Description
The query:
select s, i, avg(d) / 10.0 over (partition by s order by i) from over100k;
runs (and produces meaningless output).
Over should not allow the arithmetic expression. Only a UDAF or PTF function should be valid there. The correct way to write this query should be
select s, i, avg(d) over (partition by s order by i) / 10. 0 from over100k;