-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Analyzer: DB::Exception: Received from localhost:9000. DB::Exception: Query tree is too big. #63701
Comments
Can you check and share system.query_log for the failing queries? Also share the table definition of the tables involved. Ideally a reproducer via https://fiddle.clickhouse.com/ is much better.
No. It might have bugs that we are working on fixing, but the analyzer has fixed hundreds of long standing issues in CH. |
Hey @Algunenano, Here are the steps how I was able to reproduce this issue;
INSERT INTO table_2 FROM INFILE '/var/lib/clickhouse/user_files/table_1.Parquet' FORMAT Parquet
SELECT bool, toTypeName(bool) FROM table0_6f9f2a27_1770_11ef_a7cc_810020732561 ORDER BY tuple(*) FORMAT JSONEachRow
|
It simply related to the number of columns in the tuple function argument https://fiddle.clickhouse.com/c953f52a-f975-47c5-a038-0de2955d1ec9 It's not a real issue, it just synthetic nonsense. The same with |
The issue is more that it doesn't throw that error if the analyzer is disabled or if we use the older versions where its off by default. |
I confirm there is a bug in the implementation of ClickHouse/src/Analyzer/ValidationUtils.cpp Lines 412 to 417 in 4018298
I'll fix it. As a temporary workaround you can increase the value of |
Starting from ClickHouse 24.3, given that
experimental_analyzer
is on by default I started to get the following error:I randomly get that error after executing:
I executed a lot of queries before that, where I both read from and write to a Parquet file locally.
Given that I never got this error before with the same set of queries, maybe it makes sense to have the
experimental_analyzer
turned off by default?The text was updated successfully, but these errors were encountered: