Files
doris/regression-test/data/empty_relation/eliminate_empty.out
minghong 50e81d9db7 [feat](nereids) add more rules to eliminate empty relation (#34997) -branch-2.1 (#35534)
eliminate empty relations for following patterns:
topn->empty
sort->empty
distribute->empty
project->empty

(cherry picked from commit 8340f23946c0c8e40510ce937acd3342cb2e28b7)

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->

## Further comments

If this is a relatively large or complex change, kick off the discussion
at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why
you chose the solution you did and what alternatives you considered,
etc...
2024-05-28 18:12:42 +08:00

86 lines
1.6 KiB
Plaintext

-- This file is automatically generated. You should know what you did if you want to edit this
-- !onerow_union --
1 2
3 4
-- !join --
PhysicalResultSink
--PhysicalEmptyRelation
-- !explain_union_empty_data --
PhysicalResultSink
--PhysicalDistribute[DistributionSpecGather]
----hashAgg[LOCAL]
------PhysicalProject
--------PhysicalOlapScan[nation]
-- !union_empty_data --
1
-- !explain_union_empty_empty --
PhysicalResultSink
--PhysicalEmptyRelation
-- !union_empty_empty --
-- !union_emtpy_onerow --
10
-- !explain_intersect_data_empty --
PhysicalResultSink
--PhysicalEmptyRelation
-- !explain_intersect_empty_data --
PhysicalResultSink
--PhysicalEmptyRelation
-- !explain_except_data_empty --
PhysicalResultSink
--PhysicalDistribute[DistributionSpecGather]
----PhysicalProject
------hashAgg[LOCAL]
--------PhysicalProject
----------PhysicalOlapScan[nation]
-- !explain_except_data_empty_data --
PhysicalResultSink
--PhysicalDistribute[DistributionSpecGather]
----PhysicalExcept
------PhysicalDistribute[DistributionSpecHash]
--------PhysicalProject
----------PhysicalOlapScan[nation]
------PhysicalDistribute[DistributionSpecHash]
--------PhysicalProject
----------filter(( not (n_nationkey = 1)))
------------PhysicalOlapScan[nation]
-- !except_data_empty_data --
1
-- !explain_except_empty_data --
PhysicalResultSink
--PhysicalEmptyRelation
-- !intersect_data_empty --
-- !intersect_empty_data --
-- !except_data_empty --
1
-- !except_empty_data --
-- !prune_partition1 --
PhysicalResultSink
--PhysicalEmptyRelation
-- !prune_partition2 --
PhysicalResultSink
--PhysicalEmptyRelation
-- !join_with_empty_child --
2 8 e v 3
4 7 at 2
9 3 q 0