aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorssmike <ssmike@ydb.tech>2023-07-17 13:53:15 +0300
committerssmike <ssmike@ydb.tech>2023-07-17 13:53:15 +0300
commit99b614f1ffe19d480452329313d26c235c8ba9ca (patch)
tree0a8631293eddbd0c3a7de2b3f2c5d389378078b1
parent80851ea5b3259b5fb86d5ac6800be3dfadef0b48 (diff)
downloadydb-99b614f1ffe19d480452329313d26c235c8ba9ca.tar.gz
Disable new predicate-extract logic by default
-rw-r--r--ydb/core/kqp/opt/logical/kqp_opt_log_ranges_predext.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ydb/core/kqp/opt/logical/kqp_opt_log_ranges_predext.cpp b/ydb/core/kqp/opt/logical/kqp_opt_log_ranges_predext.cpp
index 1d7a1f8a2b..842a22353c 100644
--- a/ydb/core/kqp/opt/logical/kqp_opt_log_ranges_predext.cpp
+++ b/ydb/core/kqp/opt/logical/kqp_opt_log_ranges_predext.cpp
@@ -391,7 +391,10 @@ TExprBase KqpPushExtractedPredicateToReadTable(TExprBase node, TExprContext& ctx
}
if (!input) {
- TMaybeNode<TExprBase> prefix = prefixPointsExpr;
+ TMaybeNode<TExprBase> prefix;
+ if (kqpCtx.Config->PredicateExtract20) {
+ prefix = prefixPointsExpr;
+ }
if (indexName) {
input = Build<TKqlReadTableIndexRanges>(ctx, read.Pos())