Support for trailing comma in WITH before SELECT#101093
Conversation
alexey-milovidov
left a comment
There was a problem hiding this comment.
The implementation LGTM, thank you!
|
Workflow [PR], commit [1310604] Summary: ✅ AI ReviewSummaryThis PR adds support for a trailing comma in Missing context
ClickHouse Rules
Final Verdict
|
|
This PR is approved. |
|
Sounds good. I’m not sure where else to ask this, so I’ll ask here. After going through the contribution workflow and contributing my first feature, I’d like to continue contributing to ClickHouse. Do you have any recommendations for tasks that would take roughly a few weeks to a month? I’d be interested in either implementing a standalone feature or working on existing ClickHouse internals. |
|
What do I do about these unrelated failures? I also had unrelated failures earlier so I merged with master and re-ran tests. Is it still possible to merge or does it have to be clean? |
This is amazing! There are many tasks under the "warmup task" label. For example, this one: The idea is to make the |
|
Also to clarify, why this task is needed. Look at how |
|
Thanks! #59617 does look like a good next task. I will work on that. |
|
The Stress test (arm_msan) failure is fixed by #101239, which should be merged first. After it is merged, please update the branch to include the fix. |
|
The flaky test failures in this PR ( |
LLVM Coverage Report
Changed lines: 97.78% (44/45) | lost baseline coverage: 4 line(s) · Uncovered code |
Split flaky check and targeted check into separate roles: Flaky check — runs only new/modified tests from the PR with thread fuzzer enabled. Tests run in parallel with themselves (shared queue) to ensure new tests are parallel-safe under randomized thread ordering. Targeted check — runs previously failed and coverage-relevant tests with per-worker partitioning (--no-self-parallel) so the same test never runs concurrently on multiple workers, avoiding conflicts on shared resources (hardcoded users, roles, settings profiles, etc.). Both use --test-runs 50. Changes: - Add --no-self-parallel flag to clickhouse-test: partitions tests by name hash so all copies go to the same worker - Flaky check: only changed tests, thread fuzzer, shared queue - Targeted check: relevant tests, no thread fuzzer, per-worker queues, 50 runs, single clickhouse-test invocation - Restore original thread fuzzer parameters (reverts reductions from 06c945a and 9790435) - Add amd_binary to flaky check, use AMD_LARGE for targeted debug - Targeted check uses --flaky-check --no-self-parallel PRs affected by tests running in parallel with themselves: #102015 #101093 #99653 #101503 #101108 #101884 #100746 #101447 #100941 #101099 #100203 #96130 #102038
Split flaky check and targeted check into separate roles: Flaky check — runs only new/modified tests from the PR with thread fuzzer enabled. Tests can run in parallel with themselves (shared queue) to ensure new tests are parallel-safe. Targeted check — runs previously failed and coverage-relevant tests with per-worker partitioning (--no-self-parallel) so the same test never runs concurrently on multiple workers, avoiding conflicts on shared resources (hardcoded users, roles, settings profiles, etc.). Both use --test-runs 50. Changes: - Add --no-self-parallel flag to clickhouse-test: partitions tests by name hash so all copies go to the same worker - Flaky check: only changed tests, thread fuzzer, shared queue - Targeted check: relevant tests, no thread fuzzer, per-worker partitioning, 50 runs, single clickhouse-test invocation - Restore original thread fuzzer parameters - Change targeted check to arm_asan_ubsan on ARM_LARGE PRs affected by tests running in parallel with themselves: #102015 #101093 #99653 #101503 #101108 #101884 #100746 #101447 #100941 #101099 #100203 #96130

Allow a trailing comma in the
WITHclause beforeSELECTqueries, e.g.WITH 1 AS a, 2 AS b, SELECT a + b.The implementation adds an
allow_trailing_separatorparameter toParserListand itsparseUtilhelper, which when enabled keeps the parser position past the trailing comma instead of backtracking.This resolves #90780.
Changelog category:
Changelog entry:
You can now have a trailing comma in the
WITHclause before aSELECTquery.Documentation entry for user-facing changes
Version info
26.4.1.852