aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony-Romanov <150126326+Tony-Romanov@users.noreply.github.com>2024-01-29 09:24:25 +0100
committerGitHub <noreply@github.com>2024-01-29 09:24:25 +0100
commitf48a1ff716de9fb1fd32b011d6c79c18d91e9669 (patch)
treefb3c15fedaec4c29217fb423f2825c4075cff93d
parentdb4298118bb377fe654bca629af1f5bb019f4d37 (diff)
downloadydb-f48a1ff716de9fb1fd32b011d6c79c18d91e9669.tar.gz
Drop coalesce crutch. (#1362)
-rw-r--r--ydb/core/kqp/opt/physical/kqp_opt_phy_olap_filter.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/ydb/core/kqp/opt/physical/kqp_opt_phy_olap_filter.cpp b/ydb/core/kqp/opt/physical/kqp_opt_phy_olap_filter.cpp
index f65324c621..48c69d9c32 100644
--- a/ydb/core/kqp/opt/physical/kqp_opt_phy_olap_filter.cpp
+++ b/ydb/core/kqp/opt/physical/kqp_opt_phy_olap_filter.cpp
@@ -503,10 +503,8 @@ TMaybeNode<TExprBase> SafeCastPredicatePushdown(const TCoFlatMap& inputFlatmap,
TMaybeNode<TExprBase> CoalescePushdown(const TCoCoalesce& coalesce, TExprContext& ctx, TPositionHandle pos)
{
if constexpr (NSsa::RuntimeVersion >= 4U) {
- if (!FindNode(coalesce.Ptr(), [](const TExprNode::TPtr& node) { return TCoJsonValue::Match(node.Get()); })) {
- if (const auto node = YqlCoalescePushdown(coalesce, ctx)) {
- return node;
- }
+ if (const auto node = YqlCoalescePushdown(coalesce, ctx)) {
+ return node;
}
}