summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Khalikov <[email protected]>2026-07-22 22:20:56 +0300
committerGitHub <[email protected]>2026-07-22 19:20:56 +0000
commitb7cc23c74176979a33ce0aee024cfe3cacf36e66 (patch)
treeccac76db0048cc39ecfc92556a5de359f67558a9
parent8bfc09b69bca139ca91008e4ef3e0e2f5e94c564 (diff)
[Optimizer] Ranges pushdown check for table kind (#47491)
-rw-r--r--ydb/core/kqp/opt/rbo/rules/push_ranges.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ydb/core/kqp/opt/rbo/rules/push_ranges.cpp b/ydb/core/kqp/opt/rbo/rules/push_ranges.cpp
index 3614c0aa3b0..37fcbf45309 100644
--- a/ydb/core/kqp/opt/rbo/rules/push_ranges.cpp
+++ b/ydb/core/kqp/opt/rbo/rules/push_ranges.cpp
@@ -220,6 +220,11 @@ TIntrusivePtr<IOperator> TPushRangesRule::SimpleMatchAndApply(const TIntrusivePt
return input;
}
+ const auto tableKind = tableDesc->Metadata->Kind;
+ if (tableKind != EKikimrTableKind::Olap && tableKind != EKikimrTableKind::Datashard) {
+ return input;
+ }
+
auto lambda = TCoLambda(GetLambdaForRangeExtractor(filter->FilterExpr.Node, read->Type, rboCtx));
auto originalLambda = rboCtx.ExprCtx.DeepCopyLambda(*lambda.Ptr());
// Predicate extract lib requires constraints.