Antalya 26.4: Antalya 26.3 Hybrid: added support for segment pruning#1887
Open
zvonand wants to merge 2 commits into
Open
Antalya 26.4: Antalya 26.3 Hybrid: added support for segment pruning#1887zvonand wants to merge 2 commits into
zvonand wants to merge 2 commits into
Conversation
…next commit) --- Original cherry-pick message follows: Merge pull request #1788 from Altinity/mkmkme/antalya-26.3/hybrid-segment-pruning Antalya 26.3 Hybrid: added support for segment pruning # Conflicts: # src/Storages/StorageDistributed.cpp
Adapted `ClusterProxy::rewriteSelectQuery` to accept `additional_filter` parameter (bucket 2: parameter existed on antalya-26.3 from PR #1442 but is missing on antalya-26.4). Simplified filter injection without the ALIAS column normalization from `buildColumnNodesForTableExpression` / `ReplaceColumnNodesForTableExpressionVisitor` (those helpers are not yet on antalya-26.4); queries using ALIAS columns in segment predicates may encounter `MULTIPLE_EXPRESSIONS_FOR_ALIAS` until PR #1442 is forward-ported. Adapted `buildQueryTreeDistributed` similarly: added `additional_filter` parameter with a WHERE-injection implementation using the available `mergeConditionNodes` utility. Adapted `getInMemoryMetadataPtr()` → `getInMemoryMetadataPtr(local_context, false)` (bucket 2: antalya-26.4 requires context and bypass-cache arguments per commit `16e69dfc0f5`). Adapted: ClusterProxy::rewriteSelectQuery — added additional_filter per antalya-26.3 PR #1442, simplified (no ALIAS column normalization) Adapted: buildQueryTreeDistributed — added additional_filter with WHERE injection using mergeConditionNodes Adapted: getInMemoryMetadataPtr() → getInMemoryMetadataPtr(local_context, false) per antalya-26.4 commit 16e69df Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Hybrid tables now can ignore the segments that can't be reached by the combination of WHERE and segment predicate (#1788 by @mkmkme).
CI/CD Options
Exclude tests:
Regression jobs to run:
Cherry-picked from #1788.
Documentation entry for user-facing changes
...