Skip to content

Commit f48a1ff

Browse files
authored
Drop coalesce crutch. (#1362)
1 parent db42981 commit f48a1ff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ydb/core/kqp/opt/physical/kqp_opt_phy_olap_filter.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,10 +503,8 @@ TMaybeNode<TExprBase> SafeCastPredicatePushdown(const TCoFlatMap& inputFlatmap,
503503
TMaybeNode<TExprBase> CoalescePushdown(const TCoCoalesce& coalesce, TExprContext& ctx, TPositionHandle pos)
504504
{
505505
if constexpr (NSsa::RuntimeVersion >= 4U) {
506-
if (!FindNode(coalesce.Ptr(), [](const TExprNode::TPtr& node) { return TCoJsonValue::Match(node.Get()); })) {
507-
if (const auto node = YqlCoalescePushdown(coalesce, ctx)) {
508-
return node;
509-
}
506+
if (const auto node = YqlCoalescePushdown(coalesce, ctx)) {
507+
return node;
510508
}
511509
}
512510

0 commit comments

Comments
 (0)