Repository navigation
Antalya 26.8: Do not reuse a server constant built in another scope. - #2515
Conversation
…next commit) --- Original cherry-pick message follows: Merge pull request #2471 from Altinity/bugfix/antalya-26.6/fix-union-hostname-server-constant Do not reuse a server constant built in another scope. # Conflicts: # src/Analyzer/Resolve/resolveFunction.cpp
Kept the antalya-26.8 cache condition (`isStateful` / `isDeterministicInScopeOfQuery`), which replaced the hardcoded `getSetting` / `rowNumberInAllBlocks` name checks, and added the PR's `isServerConstant` exclusion and comment on top of it.
CI triage for #2515Verdict: 0 PR-caused failures. All real test suites are green (builds, Fast test, every Stateless/Integration/Stress batch, AST fuzzer, BuzzHouse, SQLLogic/SQLStorm) — including this PR's new test The diff is tiny and well-scoped: a 6-line guard in Per-failure breakdown1.
The job couldn't fetch the master-branch baseline binary it diffs against, so it errored before doing any parsing work ( 2.
The test deliberately queries an undiscovered/"wrong" swarm cluster and asserts on the exit code; it's hitting a connection failure instead. I checked two unrelated open PRs against
So this is an environmental/flaky failure in the swarm cluster-discovery suite on the branch, not a regression from #2515. (Note: the query happens to be exactly the 3. 4. Health checkThis is a clean cherry-pick of #2471: a minimal, targeted analyzer fix (don't reuse a server constant like Evidence: praktika report |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix
UNIONof a local query andcluster()(or another cluster function) throwingNUMBER_OF_COLUMNS_DOESNT_MATCHorTHERE_IS_NO_COLUMNonGROUP BY hostName. A server constant built on the local branch was reused for the cluster branch and folded to the initiator value. Each scope now builds its own value, so shards report their ownhostName,serverUUID,tcpPort, and the other server constants (#2471 by @ianton-ru).CI/CD Options
Exclude tests:
Regression jobs to run:
Cherry-picked from #2471.
hostNamecapturedContext::isDistributedfrom the firstUNIONbranch and was then folded on a cluster branch, so theGROUP BYheaders no longer matched.Solved #1181
Documentation entry for user-facing changes
...