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
CREATE PUMP avg_by_ticker ASINSERT INTO sink_avg_by_ticker (ticker, avg_amount)
SELECT STREAM
source_trade.ticker, -- hereAVG(source_trade.amount) AS avg_amount
FROM source_trade
GROUP BYsource_trade.ticker-- and here
FIXED WINDOW DURATION_SECS(10), DURATION_SECS(0);
Got
[2022-05-11T02:21:47Z ERROR springql_core::stream_engine::autonomous_executor] Sql(GROUP BY label not found: ValueExprLabel(1))
Workaround
Use alias
CREATE PUMP avg_by_ticker ASINSERT INTO sink_avg_by_ticker (ticker, avg_amount)
SELECT STREAM
source_trade.tickerAS ticker,
AVG(source_trade.amount) AS avg_amount
FROM source_trade
GROUP BY ticker
FIXED WINDOW DURATION_SECS(10), DURATION_SECS(0);
The text was updated successfully, but these errors were encountered:
laysakura
changed the title
bug: panic on multiple GROUP BY elements
bug: panic on column reference both in select_list and GROUP BY element
May 11, 2022
How to reproduce
Got
Workaround
Use alias
The text was updated successfully, but these errors were encountered: