diff options
author | a-romanov <Anton.Romanov@ydb.tech> | 2022-12-21 22:43:38 +0300 |
---|---|---|
committer | a-romanov <Anton.Romanov@ydb.tech> | 2022-12-21 22:43:38 +0300 |
commit | fb9ac8a6a226ef5b6aa8fc8d58563d5e69680766 (patch) | |
tree | 61f0a7809c5f2fae610812dd46b9fd4adc9c4f30 | |
parent | a278131de6d5091aa1e37852199af362e741bc58 (diff) | |
download | ydb-fb9ac8a6a226ef5b6aa8fc8d58563d5e69680766.tar.gz |
Drop Unordered on peephole.
-rw-r--r-- | ydb/library/yql/core/peephole_opt/yql_opt_peephole_physical.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ydb/library/yql/core/peephole_opt/yql_opt_peephole_physical.cpp b/ydb/library/yql/core/peephole_opt/yql_opt_peephole_physical.cpp index 1dd2d05f8e..2c42bcf97b 100644 --- a/ydb/library/yql/core/peephole_opt/yql_opt_peephole_physical.cpp +++ b/ydb/library/yql/core/peephole_opt/yql_opt_peephole_physical.cpp @@ -6562,6 +6562,11 @@ TExprNode::TPtr ExpandCheckedMinus(const TExprNode::TPtr& node, TExprContext& ct .Build(); } +TExprNode::TPtr DropUnordered(const TExprNode::TPtr& node, TExprContext&) { + YQL_CLOG(DEBUG, CorePeepHole) << "Drop " << node->Content(); + return node->HeadPtr(); +} + ui64 ToDate(ui64 now) { return std::min<ui64>(NUdf::MAX_DATE - 1U, now / 86400000000ull); } ui64 ToDatetime(ui64 now) { return std::min<ui64>(NUdf::MAX_DATETIME - 1U, now / 1000000ull); } ui64 ToTimestamp(ui64 now) { return std::min<ui64>(NUdf::MAX_TIMESTAMP - 1ULL, now); } @@ -6711,6 +6716,7 @@ struct TPeepHoleRules { {"NarrowMultiMap", &OptimizeWideMaps}, {"WideMap", &OptimizeWideMaps}, {"NarrowMap", &OptimizeWideMaps}, + {"Unordered", &DropUnordered}, }; static constexpr std::initializer_list<TExtPeepHoleOptimizerMap::value_type> FinalStageExtRulesInit = { |