You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invalid input syntax: column must appear in the GROUP BY clause or be used in an aggregate function
To Reproduce
createaggregatesum00(value int) returns int language python as $$
def create_state():
return 0
def accumulate(state, value):
return state + value
def retract(state, value):
return state - value
def finish(state):
return state
$$;
selectt.value, sum00(weight) OVER (PARTITION BY value) from (values (1, 1), (null, 2), (3, 3)) as t(value, weight);
Expected behavior
I expect to see the output:
value | weighted_avg
-------+--------------1 | 13 | 3
(2 rows)
However, it returned this error:
ERROR: Failed to run the query
Caused by:
Invalid input syntax: column must appear in the GROUP BY clause or be used in an aggregate function
How did you deploy RisingWave?
./risedev p
The version of RisingWave
latest main branch
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
No response
Error message/log
To Reproduce
Expected behavior
I expect to see the output:
However, it returned this error:
How did you deploy RisingWave?
./risedev p
The version of RisingWave
latest main branch
Additional context
No response
The text was updated successfully, but these errors were encountered: