Skip to content

Commit

Permalink
fix 2.0 p0
Browse files Browse the repository at this point in the history
  • Loading branch information
LiBinfeng-01 committed Aug 2, 2024
1 parent c639014 commit ed8a50d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
28 changes: 21 additions & 7 deletions regression-test/data/empty_relation/eliminate_empty.out
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ PhysicalResultSink

-- !null_explain_union_empty_data --
PhysicalResultSink
--PhysicalDistribute[DistributionSpecGather]
--PhysicalDistribute
----hashAgg[LOCAL]
------PhysicalProject
--------PhysicalOlapScan[nation]
Expand All @@ -103,20 +103,20 @@ PhysicalResultSink

-- !null_explain_except_data_empty --
PhysicalResultSink
--PhysicalDistribute[DistributionSpecGather]
--PhysicalDistribute
----PhysicalProject
------hashAgg[LOCAL]
--------PhysicalProject
----------PhysicalOlapScan[nation]

-- !null_explain_except_data_empty_data --
PhysicalResultSink
--PhysicalDistribute[DistributionSpecGather]
--PhysicalDistribute
----PhysicalExcept
------PhysicalDistribute[DistributionSpecHash]
------PhysicalDistribute
--------PhysicalProject
----------PhysicalOlapScan[nation]
------PhysicalDistribute[DistributionSpecHash]
------PhysicalDistribute
--------PhysicalProject
----------filter(( not (n_nationkey = 1)))
------------PhysicalOlapScan[nation]
Expand All @@ -139,11 +139,25 @@ PhysicalResultSink

-- !prune_partition1 --
PhysicalResultSink
--PhysicalEmptyRelation
--PhysicalDistribute
----PhysicalProject
------hashAgg[GLOBAL]
--------PhysicalDistribute
----------hashAgg[LOCAL]
------------PhysicalProject
--------------filter((eliminate_partition_prune.k1 = 100))
----------------PhysicalOlapScan[eliminate_partition_prune]

-- !prune_partition2 --
PhysicalResultSink
--PhysicalEmptyRelation
--PhysicalDistribute
----PhysicalProject
------hashAgg[GLOBAL]
--------PhysicalDistribute
----------hashAgg[LOCAL]
------------PhysicalProject
--------------filter((eliminate_partition_prune.k1 = 100))
----------------PhysicalOlapScan[eliminate_partition_prune]

-- !join_with_empty_child --
2 8 e v 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ suite("test_multi_range_partition") {

explain {
sql "select * from pt where k1=7 and k2 in (null);"
contains "partitions=0/3"
contains "VEMPTYSET"
}

explain {
sql "select * from pt where k1=7 and k2 not in (null);"
contains "partitions=0/3"
contains "VEMPTYSET"
}

explain {
Expand All @@ -189,13 +189,13 @@ suite("test_multi_range_partition") {

explain {
sql "select * from pt where k2 in (null);"
contains "partitions=0/3"
contains "VEMPTYSET"
}

// p1/p2/p3 NOT pruned
explain {
sql "select * from pt where k2 not in (null)"
contains "partitions=0/3"
contains "VEMPTYSET"
}

explain {
Expand Down

0 comments on commit ed8a50d

Please sign in to comment.