Files
ClickHouse/tests/performance/analyzer_repeat_alias_chain.xml
Alexey MilovidovandClaude Opus 5.5 71b03103a5 Remove enable_analyzer and allow_experimental_analyzer from tests
The old query analysis was removed, and `enable_analyzer` (canonically
`allow_experimental_analyzer`) is an obsolete setting frozen at `1`, so setting
it in tests does nothing. Remove it from stateless, integration, performance and
SQLStorm tests: drop `SET` statements, `SETTINGS` items, client options, loops
over both values and their echoed labels, and comments explaining why the
setting was pinned.

Tests of the obsolete setting itself are kept as they are:
`05136_analyzer_cannot_be_disabled`, `05210_analyzer_cannot_be_disabled_by_query_kind`,
`05292_analyzer_setting_float_value`, `04348_query_parameter_name_collides_with_setting`,
`04078_settings_constraints_compatibility_const`, `05099_client_options_exact_lookup`,
`03999_settings_history_baseline` and the `test_analyzer_compatibility` integration
test, which runs an old server version that still honours the setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 03:47:40 +00:00

32 lines
1.6 KiB
XML

<test>
<!--
Query analysis of a chain of arithmetic aliases where each alias references all of the
previous ones (A2 = A1 + A1, A3 = (A2 + A1) + A1, ... A16 = (...) + A1). Inlining the
aliases expands the expression super-linearly, producing a large tree of `plus` calls.
This stresses analysis of an expression with very many (deterministic) function nodes.
Source: https://github.com/ClickHouse/ClickHouse/pull/88043#issuecomment-4574799259
-->
<query><![CDATA[
SELECT
A1 + A1 AS A2,
(A2 + A1) + A1 AS A3,
((A3 + A2) + A1) + A1 AS A4,
(((A4 + A3) + A2) + A1) + A1 AS A5,
((((A5 + A4) + A3) + A2) + A1) + A1 AS A6,
(((((A6 + A5) + A4) + A3) + A2) + A1) + A1 AS A7,
((((((A7 + A6) + A5) + A4) + A3) + A2) + A1) + A1 AS A8,
(((((((A8 + A7) + A6) + A5) + A4) + A3) + A2) + A1) + A1 AS A9,
((((((((A9 + A8) + A7) + A6) + A5) + A4) + A3) + A2) + A1) + A1 AS A10,
(((((((((A10 + A9) + A8) + A7) + A6) + A5) + A4) + A3) + A2) + A1) + A1 AS A11,
((((((((((A11 + A10) + A9) + A8) + A7) + A6) + A5) + A4) + A3) + A2) + A1) + A1 AS A12,
(((((((((((A12 + A11) + A10) + A9) + A8) + A7) + A6) + A5) + A4) + A3) + A2) + A1) + A1 AS A13,
((((((((((((A13 + A12) + A11) + A10) + A9) + A8) + A7) + A6) + A5) + A4) + A3) + A2) + A1) + A1 AS A14,
(((((((((((((A14 + A13) + A12) + A11) + A10) + A9) + A8) + A7) + A6) + A5) + A4) + A3) + A2) + A1) + A1 AS A15,
((((((((((((((A15 + A14) + A13) + A12) + A11) + A10) + A9) + A8) + A7) + A6) + A5) + A4) + A3) + A2) + A1) + A1 AS A16
FROM VALUES('A1 UInt8', 1)
FORMAT Null
]]></query>
</test>