Skip to content

Commit 00126fe

Browse files
Fix pushdown JSON_EXISTS on runtime version 4 (#7025)
Co-authored-by: Tony-Romanov <150126326+Tony-Romanov@users.noreply.github.com>
1 parent b044918 commit 00126fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ydb/core/kqp/query_compiler/kqp_olap_compiler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,6 @@ ui64 GetOrCreateColumnId(const TExprBase& node, TKqpOlapCompileContext& ctx) {
463463
if (const auto maybeJsonExists = node.Maybe<TKqpOlapJsonExists>()) {
464464
return CompileJsonExists(maybeJsonExists.Cast(), ctx).Id;
465465
}
466-
467466
YQL_ENSURE(false, "Unknown node in OLAP comparison compiler: " << node.Ref().Content());
468467
}
469468

@@ -784,8 +783,9 @@ TTypedColumn GetOrCreateColumnIdAndType(const TExprBase& node, TKqpOlapCompileCo
784783
return BuildLogicalNot(maybeNot.Cast().Value(), ctx);
785784
} else if (const auto& maybeJsonValue = node.Maybe<TKqpOlapJsonValue>()) {
786785
return ConvertJsonValueToColumn(maybeJsonValue.Cast(), ctx);
786+
} else if (const auto& maybeJsonValue = node.Maybe<TKqpOlapJsonExists>()) {
787+
return CompileJsonExists(maybeJsonValue.Cast(), ctx);
787788
}
788-
789789
return {GetOrCreateColumnId(node, ctx), ctx.GetArgType(node)};
790790
}
791791

0 commit comments

Comments
 (0)