Skip to content

Force the analyzer in 03707_autopr_unsupported_cases - #117364

Merged
nickitat merged 1 commit into
masterfrom
fix-03707-autopr-old-analyzer
Aug 31, 2026
Merged

nickitat merged 1 commit into
masterfrom
fix-03707-autopr-old-analyzer

Conversation

@nickitat

@nickitat nickitat commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Workflow [PR]
Sync PR [sync-upstream/pr/117364]

Version info

  • Merged into: 26.9.1.464 (included in 26.9 and later)

The automatic parallel replicas optimization runs over the query plan, and
only the analyzer builds one - `InterpreterSelectQuery` turns
`enable_parallel_replicas` off as soon as it sees `enable_parallel_replicas`
together with a non-zero `automatic_parallel_replicas_mode`. So with the old
analyzer the two `supported_*` shapes added in #116540 collect no dataflow
statistics either and print `0 0`, which fails the test deterministically in
the old-analyzer job. Every other `*_autopr_*` test already pins
`enable_analyzer=1`; do the same here.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=828b3cd06ccd76999a396db1451d3eb3f24325cc&name_0=MasterCI&name_1=Stateless%20tests%20(amd_llvm_coverage%2C%20old%20analyzer%2C%20s3%20storage%2C%20DBReplicated%2C%20parallel%2C%201%2F3)

Caused by: #116540

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_017SM8hLHmtt2vngrfB7758u
@clickhouse-gh

clickhouse-gh Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [054e616]

Summary: ✅


AI Review

Summary

This PR makes tests/queries/0_stateless/03707_autopr_unsupported_cases.sql opt into enable_analyzer=1, which matches the contract the test is documenting: automatic_parallel_replicas_mode = 2 only exercises the query-plan-based statistics path when the analyzer is active, while the old analyzer disables parallel replicas for that settings combination. I did not find a correctness, coverage, or metadata issue in the current diff.

Final Verdict

✅ No findings in the current PR diff.

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Aug 31, 2026
@nickitat
nickitat enabled auto-merge August 31, 2026 17:23
@alexey-milovidov alexey-milovidov self-assigned this Aug 31, 2026
@alexey-milovidov alexey-milovidov added the blocker This issue / pr blocks a new release label Aug 31, 2026
@nickitat
nickitat added this pull request to the merge queue Aug 31, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 31, 2026
@nickitat
nickitat added this pull request to the merge queue Aug 31, 2026
@nickitat

Copy link
Copy Markdown
Member Author

As far as I see, it isn't really about the test:

2026-08-31T20:39:28.3590541Z [2026-08-31 20:39:28] Fail [Stateless tests (amd_binary, flaky check)]
2026-08-31T20:39:28.3590835Z [2026-08-31 20:39:28]   | Failures: 1/2
2026-08-31T20:39:28.3591071Z [2026-08-31 20:39:28]   Fail [Install ClickHouse]
2026-08-31T20:39:28.3591553Z [2026-08-31 20:39:28]     | Command [<function main.<locals>.configure_log_export at 0x7f88ffeb2200>] failed with exception [Unable to locate credentials]:
2026-08-31T20:39:28.3592036Z [2026-08-31 20:39:28]     | Traceback (most recent call last):
2026-08-31T20:39:28.3592510Z [2026-08-31 20:39:28]     |   File "/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/ci/praktika/result.py", line 977, in from_commands_run
2026-08-31T20:39:28.3593255Z [2026-08-31 20:39:28]     |     result = command_(*command_args, **command_kwargs)
2026-08-31T20:39:28.3593798Z [2026-08-31 20:39:28]     |   File "/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/./ci/jobs/functional_tests.py", line 928, in configure_log_export
2026-08-31T20:39:28.3594312Z [2026-08-31 20:39:28]     |     return CH.create_log_export_config()
2026-08-31T20:39:28.3594979Z [2026-08-31 20:39:28]     |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
2026-08-31T20:39:28.3595535Z [2026-08-31 20:39:28]     |   File "/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/ci/jobs/scripts/clickhouse_proc.py", line 330, in 
2026-08-31T20:39:28.3596024Z                       create_log_export_config
2026-08-31T20:39:28.3596366Z [2026-08-31 20:39:28]     |     self.log_export_host, self.log_export_password = log_export.get_credentials()
2026-08-31T20:39:28.3596835Z [2026-08-31 20:39:28]     |                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~^^
2026-08-31T20:39:28.3597446Z [2026-08-31 20:39:28]     |   File "/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/ci/jobs/scripts/log_export.py", line 85, in get_credentials
2026-08-31T20:39:28.3598079Z [2026-08-31 20:39:28]     |     .get_value()
2026-08-31T20:39:28.3598335Z [2026-08-31 20:39:28]     |      ~~~~~~~~~^^
2026-08-31T20:39:28.3598796Z [2026-08-31 20:39:28]     |   File "/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/ci/praktika/secret.py", line 50, in get_value
2026-08-31T20:39:28.3599310Z [2026-08-31 20:39:28]     |     return self.get_aws_ssm_parameters()
2026-08-31T20:39:28.3599633Z [2026-08-31 20:39:28]     |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
2026-08-31T20:39:28.3600171Z [2026-08-31 20:39:28]     |   File "/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/ci/praktika/secret.py", line 86, in get_aws_ssm_parameters
2026-08-31T20:39:28.3600719Z [2026-08-31 20:39:28]     |     res = client.get_parameters(
2026-08-31T20:39:28.3601028Z [2026-08-31 20:39:28]     |         Names=self.name,
2026-08-31T20:39:28.3601279Z [2026-08-31 20:39:28]     |         WithDecryption=True,
2026-08-31T20:39:28.3601512Z [2026-08-31 20:39:28]     |     )
2026-08-31T20:39:28.3601856Z [2026-08-31 20:39:28]     |   File "/usr/local/lib/python3.13/dist-packages/botocore/client.py", line 595, in _api_call
2026-08-31T20:39:28.3602282Z [2026-08-31 20:39:28]     |     return self._make_api_call(operation_name, kwargs)
2026-08-31T20:39:28.3602592Z [2026-08-31 20:39:28]     |            ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-31T20:39:28.3602972Z [2026-08-31 20:39:28]     |   File "/usr/local/lib/python3.13/dist-packages/botocore/context.py", line 123, in wrapper
2026-08-31T20:39:28.3603347Z [2026-08-31 20:39:28]     |     return func(*args, **kwargs)
2026-08-31T20:39:28.3603735Z [2026-08-31 20:39:28]     |   File "/usr/local/lib/python3.13/dist-packages/botocore/client.py", line 1040, in _make_api_call
2026-08-31T20:39:28.3604147Z [2026-08-31 20:39:28]     |     http, parsed_response = self._make_request(
2026-08-31T20:39:28.3604443Z [2026-08-31 20:39:28]     |                             ~~~~~~~~~~~~~~~~~~^
2026-08-31T20:39:28.3604745Z [2026-08-31 20:39:28]     |         operation_model, request_dict, request_context
2026-08-31T20:39:28.3605196Z [2026-08-31 20:39:28]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-31T20:39:28.3605447Z [2026-08-31 20:39:28]     |     )
2026-08-31T20:39:28.3605636Z [2026-08-31 20:39:28]     |     ^
2026-08-31T20:39:28.3605989Z [2026-08-31 20:39:28]     |   File "/usr/local/lib/python3.13/dist-packages/botocore/client.py", line 1064, in _make_request
2026-08-31T20:39:28.3606445Z [2026-08-31 20:39:28]     |     return self._endpoint.make_request(operation_model, request_dict)
2026-08-31T20:39:28.3606808Z [2026-08-31 20:39:28]     |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-31T20:39:28.3607229Z [2026-08-31 20:39:28]     |   File "/usr/local/lib/python3.13/dist-packages/botocore/endpoint.py", line 119, in make_request
2026-08-31T20:39:28.3607717Z [2026-08-31 20:39:28]     |     return self._send_request(request_dict, operation_model)
2026-08-31T20:39:28.3608049Z [2026-08-31 20:39:28]     |            ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-31T20:39:28.3608453Z [2026-08-31 20:39:28]     |   File "/usr/local/lib/python3.13/dist-packages/botocore/endpoint.py", line 196, in _send_request
2026-08-31T20:39:28.3608901Z [2026-08-31 20:39:28]     |     request = self.create_request(request_dict, operation_model)
2026-08-31T20:39:28.3609339Z [2026-08-31 20:39:28]     |   File "/usr/local/lib/python3.13/dist-packages/botocore/endpoint.py", line 132, in create_request
2026-08-31T20:39:28.3609734Z [2026-08-31 20:39:28]     |     self._event_emitter.emit(
2026-08-31T20:39:28.3609987Z [2026-08-31 20:39:28]     |     ~~~~~~~~~~~~~~~~~~~~~~~~^
2026-08-31T20:39:28.3610227Z [2026-08-31 20:39:28]     |         event_name,
2026-08-31T20:39:28.3610452Z [2026-08-31 20:39:28]     |         ^^^^^^^^^^^
2026-08-31T20:39:28.3610682Z [2026-08-31 20:39:28]     |         request=request,
2026-08-31T20:39:28.3610920Z [2026-08-31 20:39:28]     |         ^^^^^^^^^^^^^^^^
2026-08-31T20:39:28.3611235Z [2026-08-31 20:39:28]     |         operation_name=operation_model.name,
2026-08-31T20:39:28.3611520Z [2026-08-31 20:39:28]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-31T20:39:28.3611757Z [2026-08-31 20:39:28]     |     )
2026-08-31T20:39:28.3611944Z [2026-08-31 20:39:28]     |     ^
2026-08-31T20:39:28.3612258Z [2026-08-31 20:39:28]     |   File "/usr/local/lib/python3.13/dist-packages/botocore/hooks.py", line 412, in emit
2026-08-31T20:39:28.3612661Z [2026-08-31 20:39:28]     |     return self._emitter.emit(aliased_event_name, **kwargs)
2026-08-31T20:39:28.3613031Z [2026-08-31 20:39:28]     |            ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-31T20:39:28.3613411Z [2026-08-31 20:39:28]     |   File "/usr/local/lib/python3.13/dist-packages/botocore/hooks.py", line 256, in emit
2026-08-31T20:39:28.3613788Z [2026-08-31 20:39:28]     |     return self._emit(event_name, kwargs)
2026-08-31T20:39:28.3614067Z [2026-08-31 20:39:28]     |            ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
2026-08-31T20:39:28.3614429Z [2026-08-31 20:39:28]     |   File "/usr/local/lib/python3.13/dist-packages/botocore/hooks.py", line 239, in _emit
2026-08-31T20:39:28.3614931Z [2026-08-31 20:39:28]     |     response = handler(**kwargs)
2026-08-31T20:39:28.3615310Z [2026-08-31 20:39:28]     |   File "/usr/local/lib/python3.13/dist-packages/botocore/signers.py", line 107, in handler
2026-08-31T20:39:28.3615702Z [2026-08-31 20:39:28]     |     return self.sign(operation_name, request)
2026-08-31T20:39:28.3615987Z [2026-08-31 20:39:28]     |            ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-31T20:39:28.3616355Z [2026-08-31 20:39:28]     |   File "/usr/local/lib/python3.13/dist-packages/botocore/signers.py", line 199, in sign
2026-08-31T20:39:28.3616721Z [2026-08-31 20:39:28]     |     auth.add_auth(request)
2026-08-31T20:39:28.3616969Z [2026-08-31 20:39:28]     |     ~~~~~~~~~~~~~^^^^^^^^^
2026-08-31T20:39:28.3617325Z [2026-08-31 20:39:28]     |   File "/usr/local/lib/python3.13/dist-packages/botocore/auth.py", line 421, in add_auth
2026-08-31T20:39:28.3617707Z [2026-08-31 20:39:28]     |     raise NoCredentialsError()
2026-08-31T20:39:28.3618062Z [2026-08-31 20:39:28]     | botocore.exceptions.NoCredentialsError: Unable to locate credentials
2026-08-31T20:39:28.3618413Z [2026-08-31 20:39:28]     | prepare log export config

Merged via the queue into master with commit c9ed88d Aug 31, 2026
174 checks passed
@nickitat
nickitat deleted the fix-03707-autopr-old-analyzer branch August 31, 2026 22:05
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 31, 2026
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Sep 1, 2026
…builder

`Stateless tests (amd_llvm_coverage, old analyzer, s3 storage, DBReplicated,
parallel, 1/3)` failed on 920bacd with a one-line diff:
`arm5b_mixed_limit_offset` printed 1 where the reference has 0. Every value
line was byte-identical, so only the arming assertion moved. The runner's
own
reproducibility check reported 3 failures out of 3 reruns.

`TableJoin::TableJoin(const Settings &, JoinAnalyzeMode, ...)`, the
constructor
`JoinedTables::makeTableJoin` uses, never assigns
`joined_block_split_single_row`, so it keeps its in-class `false`; only the
`JoinSettings` constructor the analyzer's join step uses reads the setting.
`HashJoinResult::next` selects `buildOutputFromBlocksLimitAndOffset` from
that
property, so with `enable_analyzer = 0` the three arms that ask for the
limit
and offset builder silently get the by-blocks builder instead.

Arm 5b is the arm where that shows: it exists to pin that the limit and
offset
builder is all or nothing, and the by-blocks builder decides per column, so
it
gathers `a` beside the `LowCardinality(String)` the gather cannot take. Arms
5
and 14c admit every column, so both builders agree on their numbers and they
were passing while covering the same builder arms 3 and 14 already cover.
All
three now pin `enable_analyzer = 1`.

Measured against a server whose default profile sets `enable_analyzer = 0`,
which is how the failing job configures it. The CI diff line reproduces in
0.59 s, and `HashJoinDirectGatheredValues` for arm 5b's shape is 0 with the
analyzer
and 1000 with the old analyzer while both return the same 1000 rows and the
same `cityHash64` sum. The switch is the builder, not the column type: with
every payload admitted the count is 2000 either way, and a `Map(String,
UInt64)`
payload behaves exactly like the `LowCardinality(String)` one.
`output_by_row_list` is true on both planners, which `arm3_by_ref_lists`
confirms by staying at 0.

With the pins the test is 30/30 green on the old-analyzer server with
randomized settings and 50/50 on the analyzer one, and no reference value
changes.
Removing only arm 5b's pin from this tree brings back the same single diff
line, so the arm still fails if the property it asserts breaks.

Same remedy as ClickHouse#117364, which pinned `enable_analyzer` in
`03707_autopr_unsupported_cases` for an optimization only the analyzer's
query
plan reaches.

Co-Authored-By: Claude Opus 5 <[email protected]>
@rienath rienath linked an issue Sep 1, 2026 that may be closed by this pull request
alexey-milovidov added a commit that referenced this pull request Sep 1, 2026
…o 05055

Merging `master` pulls in #117364,
which fixes the only test red on this pull request
(`03707_autopr_unsupported_cases`, #117480).

The test number 05043 was taken on `master` in the meantime, so the test is
renumbered to 05055.
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Sep 2, 2026
Requested by the reviewer to get a fresh CI run. Master at bb3c0a8 carries the
fixes for all three failures on the previous head: ClickHouse#117397 (finished-stages
drain test out of the parallel suite), ClickHouse#117364 (force the analyzer in
03707_autopr_unsupported_cases) and ClickHouse#117412 (integration tests' nested
container budget).
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Sep 2, 2026
Picks up ClickHouse#117364 (fixes 03707_autopr_unsupported_cases under the old
analyzer) and ClickHouse#117412 (fixes the nested container memory budget that
OOM-killed integration test containers), which owned two of the failures
on the previous head. The Bugfix validation "Could not find master
builds in S3" failures have also stopped occurring upstream.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocker This issue / pr blocks a new release pr-not-for-changelog This PR should not be mentioned in the changelog 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.

Flaky test: 03707_autopr_unsupported_cases

3 participants