Skip to content

Enable allow_experimental_analyzer by default - #61652

Merged
novikd merged 21 commits into
masterfrom
enable-analyzer
Mar 27, 2024
Merged

novikd merged 21 commits into
masterfrom
enable-analyzer

Conversation

@novikd

@novikd novikd commented Mar 20, 2024

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Enable allow_experimental_analyzer setting by default.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-improvement Pull request with some product improvements label Mar 20, 2024
@robot-clickhouse-ci-2

robot-clickhouse-ci-2 commented Mar 20, 2024 •

Copy link
Copy Markdown
Contributor

This is an automated comment for commit 104774c with description of existing statuses. It's updated for the latest CI running

❌ Click here to open a full report in a separate page

Check nameDescriptionStatus
A SyncThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS⏳ pending
CI runningA meta-check that indicates the running CI. Normally, it's in success or pending state. The failed status indicates some problems with the PR⏳ pending
Mergeable CheckChecks if all other necessary checks are successful❌ failure
Successful checks
Check nameDescriptionStatus
ClickHouse build checkBuilds ClickHouse in various configurations for use in further steps. You have to fix the builds that fail. Build logs often has enough information to fix the error, but you might have to reproduce the failure locally. The cmake options can be found in the build log, grepping for cmake. Use these options and follow the general build process✅ success
Compatibility checkChecks that clickhouse binary runs on distributions with old libc versions. If it fails, ask a maintainer for help✅ success
Docker keeper imageThe check to build and optionally push the mentioned image to docker hub✅ success
Docs checkBuilds and tests the documentation✅ success
Fast testNormally this is the first check that is ran for a PR. It builds ClickHouse and runs most of stateless functional tests, omitting some. If it fails, further checks are not started until it is fixed. Look at the report to see which tests fail, then reproduce the failure locally as described here✅ success
Install packagesChecks that the built packages are installable in a clear environment✅ success
PR CheckThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Style checkRuns a set of checks to keep the code style clean. If some of tests failed, see the related log from the report✅ success

@novikd novikd added the analyzer Issues and pull-requests related to new analyzer label Mar 20, 2024
@novikd
novikd merged commit 39d9906 into master Mar 27, 2024
@novikd
novikd deleted the enable-analyzer branch March 27, 2024 11:58
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 27, 2024
@azat

azat commented Mar 28, 2024

Copy link
Copy Markdown
Member

There are bunch of performance tests that became slower (and some of functionality are not covered by performance tests at all, but this is a separate problem)

Maybe separate performance tests job should be added to CI, that will compare allow_experimental_analyzer=0/1, thoughts?


write_embedded_config("0_common_instance_users.xml", users_d_dir)
if (
os.environ.get("CLICKHOUSE_USE_NEW_ANALYZER") is not None

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now old analyzer integration tests simply checks new analyzer instead, because it had been broken in 67d39a2, let's try enable it back - #63069

@novikd novikd mentioned this pull request Apr 30, 2024
cwurm pushed a commit to cwurm/ClickHouse that referenced this pull request Nov 13, 2026
The four queries of `rand.xml` have the shape
`SELECT count() FROM (SELECT f() FROM zeros(N))`. `count()` reads no column
of the subquery, so the projection is dropped and `f()` is never called: in
CI `FunctionExecute` is 0 in every run of all four queries on both
architectures, and the queries time `count()` over `zeros()` (4-8 ms for
queries 2 and 3), which is noise. This started with the analyzer becoming
the default (ClickHouse#61652): on master `rand ClickHouse#2` went from 246 ms on 2024-03-26 to
6.3 ms on 2024-03-27.

Performance test queries keep their numbers, so queries 0-3 are disabled
(`disabled="1"`, text unchanged) and queries 4-7 are appended in the
`WHERE NOT ignore(f())` form used by `random_string.xml` and
`synthetic_hardware_benchmark.xml`, with the same row counts. `ignore` is
never constant-folded, so its argument is computed for every row.

Related: ClickHouse#110105, ClickHouse#101039

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

analyzer Issues and pull-requests related to new analyzer pr-improvement Pull request with some product improvements pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants