New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column is not under aggregate function and not in GROUP BY in mat view in 23.5 #50928
Comments
https://fiddle.clickhouse.com/b8bd6a8a-2ed4-4c8b-90e1-b4244586a86c Dictionary ( |
I have replaced function bitTest with boolean results accordinary settings_dic. Now error is reproduced.
|
Latest version - error 23.4.3 version - ok |
No. Still a problem because of a dictionary https://fiddle.clickhouse.com/6f249dc0-b1e2-43cb-9b27-3f8b70b03a3b |
Now I have remove all dics Latest - error 23.4.3.48 – ok
|
@den-crane Could you check again please |
simplified repro CREATE TABLE f(c String) ENGINE = Null;
create materialized view v engine = Null as
select
false ? c : '' as c,
countState() t
from f group by c; https://fiddle.clickhouse.com/4dc51ebf-a3da-4013-b5dc-1d8521702504 As workaround you can use |
even simpler select false ? c : '' as c, count() from (select '' c) group by c;
Column `c` is not under aggregate function and not in GROUP BY. Have columns: ['false','count()'] select if( 0 , c, '') _c, count() from (select '' c) group by _c;
┌─_c─┬─count()─┐
│ │ 1 │
└────┴─────────┘
select if(1 = 0, c, '') _c, count() from (select '' c) group by _c;
DB::Exception: Column `c` is not under aggregate function and not in GROUP BY.
Have columns: ['equals(1, 0)','1','0','count()']: While processing if(1 = 0, c, '') AS _c, count(). (NOT_AN_AGGREGATE) |
another WA -
|
@alexey-milovidov probably you introduced this issue in #50536 select if(1 = 0, c, '') _c, count() from (select '' c) group by _c;
DB::Exception: Column `c` is not under aggregate function
select if(1 = 1, c, '') _c, count() from (select '' c) group by _c;
┌─_c─┬─count()─┐
│ │ 1 │
└────┴─────────┘ |
Such behaviour is result of this commit SELECT timezoneOf(expires_at) tz, count(*) FROM system.query_cache GROUP BY tz
DB::Exception: Column `expires_at` is not under aggregate function |
Hi
I have issue when upgrading from 23.4. to 23.5
The error is
On previous versions the code below works fine. Please note that column post_nat_source_ipv4 is in GROUP BY
The text was updated successfully, but these errors were encountered: