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
ksql> CREATE TABLE test2 AS SELECT INITCAP(COL1), COL2, TRIM(COL3), concat(initcap(col1), col2, trim(col3)) AS foo, COUNT(*) FROM input3 GROUP BY INITCAP(col1), col2, TRIM(col3);
Non-aggregate SELECT expression(s) not part of GROUP BY: CONCAT(INITCAP(COL1), COL2, TRIM(COL3))
Either add the column to the GROUP BY or remove it from the SELECT.
The problem is that the AggregateAnalyzer does not recognize that the arguments of function CONCAT in the SELECT clause are actually grouping keys.
To Reproduce
Steps to reproduce the behavior, include:
The version of KSQL.
master
Sample source data.
CREATE STREAM input3 (id INT KEY, col1 VARCHAR, col2 VARCHAR, col3 VARCHAR, col4 VARCHAR) WITH (kafka_topic='input', value_format='json');
Any SQL statements you ran
Expected behavior
The query succeeds
Actual behaviour
Non-aggregate SELECT expression(s) not part of GROUP BY: CONCAT(INITCAP(COL1), COL2, TRIM(COL3))
Either add the column to the GROUP BY or remove it from the SELECT.
The text was updated successfully, but these errors were encountered:
Describe the bug
This query fails
The problem is that the
AggregateAnalyzer
does not recognize that the arguments of functionCONCAT
in the SELECT clause are actually grouping keys.To Reproduce
Steps to reproduce the behavior, include:
master
Expected behavior
The query succeeds
Actual behaviour
The text was updated successfully, but these errors were encountered: