ClickHouse/tests
Azat Khuzhin 774744a86d Fix allow_experimental_projection_optimization with enable_global_with_statement
allow_experimental_projection_optimization requires one more
InterpreterSelectQuery, which with enable_global_with_statement will
apply ApplyWithAliasVisitor if the query is not subquery.

But this should not be done for queries from
MergeTreeData::getQueryProcessingStage()/getQueryProcessingStageWithAggregateProjections()
since this will duplicate WITH statements over and over.

This will also fix scalar.xml perf tests, that leads to the following
error now:

    scalar.query0.prewarm0: DB::Exception: Stack size too large.

And since it has very long query in the log, this leads to the following
perf test error:

    _csv.Error: field larger than field limit (131072)

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-02-16 19:14:47 +03:00
..
ci Merge pull request #34644 from ClickHouse/fix-release-ci 2022-02-16 14:33:55 +01:00
config
fuzz
instructions
integration Merge pull request #34503 from Avogar/s3-signatures 2022-02-16 12:30:11 +03:00
jepsen.clickhouse-keeper
perf_drafts
performance support filtering by sparse columns without convertion to full 2022-02-15 14:30:54 +03:00
queries Fix allow_experimental_projection_optimization with enable_global_with_statement 2022-02-16 19:14:47 +03:00
testflows
.gitignore
clickhouse-test
CMakeLists.txt
msan_suppressions.txt
stress
tsan_suppressions.txt
ubsan_suppressions.txt