diff options
author | ssmike <ssmike@ydb.tech> | 2023-12-13 18:22:31 +0300 |
---|---|---|
committer | ssmike <ssmike@ydb.tech> | 2023-12-13 21:09:22 +0300 |
commit | 038b24cba61ab4049c204fec05146de9a77e80f8 (patch) | |
tree | e01cdc6b95f8303a657316605a2b2d1b741df1e5 | |
parent | 648dce4549cd6701db0125cfe0ef6cda9e81cf57 (diff) | |
download | ydb-038b24cba61ab4049c204fec05146de9a77e80f8.tar.gz |
Fix comparison key
KIKIMR-10864
-rw-r--r-- | ydb/core/kqp/opt/logical/kqp_opt_log_ranges_predext.cpp | 4 |
1 files changed, 2 insertions, 2 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 b6a0a87f95..22fbcac963 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 @@ -278,9 +278,9 @@ TExprBase KqpPushExtractedPredicateToReadTable(TExprBase node, TExprContext& ctx auto calcKey = [&](NYql::IPredicateRangeExtractor::TBuildResult buildResult, size_t descriptionKeyColumns, bool needsJoin) -> TIndexComparisonKey { return std::make_tuple( buildResult.PointPrefixLen >= descriptionKeyColumns, - buildResult.PointPrefixLen, + buildResult.PointPrefixLen >= descriptionKeyColumns ? 0 : buildResult.PointPrefixLen, buildResult.UsedPrefixLen >= descriptionKeyColumns, - buildResult.UsedPrefixLen, + buildResult.UsedPrefixLen >= descriptionKeyColumns ? 0 : buildResult.UsedPrefixLen, !needsJoin); }; |