@@ -75,51 +75,53 @@ logical_plan
7575physical_plan
767601)SortExec: TopK(fetch=10), expr=[value@1 DESC], preserve_partitioning=[false]
777702)--ProjectionExec: expr=[ps_partkey@0 as ps_partkey, sum(partsupp.ps_supplycost * partsupp.ps_availqty)@1 as value]
78- 03)----NestedLoopJoinExec: join_type=Inner, filter=CAST(sum(partsupp.ps_supplycost * partsupp.ps_availqty)@0 AS Decimal128(38, 15)) > sum(partsupp.ps_supplycost * partsupp.ps_availqty) * Float64(0.0001)@1 , projection=[ps_partkey@0, sum(partsupp.ps_supplycost * partsupp.ps_availqty)@1]
78+ 03)----NestedLoopJoinExec: join_type=Inner, filter=join_proj_push_down_1@1 > sum(partsupp.ps_supplycost * partsupp.ps_availqty) * Float64(0.0001)@0 , projection=[ps_partkey@0, sum(partsupp.ps_supplycost * partsupp.ps_availqty)@1, sum(partsupp.ps_supplycost * partsupp.ps_availqty) * Float64(0.0001)@3 ]
797904)------CoalescePartitionsExec
80- 05)--------AggregateExec: mode=FinalPartitioned, gby= [ps_partkey@0 as ps_partkey], aggr=[ sum(partsupp.ps_supplycost * partsupp.ps_availqty)]
80+ 05)--------ProjectionExec: expr= [ps_partkey@0 as ps_partkey, sum(partsupp.ps_supplycost * partsupp.ps_availqty)@1 as sum(partsupp.ps_supplycost * partsupp.ps_availqty), CAST(sum(partsupp.ps_supplycost * partsupp.ps_availqty)@1 AS Decimal128(38, 15)) as join_proj_push_down_1 ]
818106)----------CoalesceBatchesExec: target_batch_size=8192
82- 07)------------RepartitionExec: partitioning=Hash( [ps_partkey@0], 4), input_partitions=4
83- 08)--------------AggregateExec: mode=Partial, gby=[ps_partkey@0 as ps_partkey], aggr=[sum(partsupp.ps_supplycost * partsupp.ps_availqty)]
84- 09)----------------CoalesceBatchesExec: target_batch_size=8192
85- 10)------------------HashJoinExec : mode=Partitioned, join_type=Inner, on=[(s_nationkey@3, n_nationkey@0) ], projection=[ps_partkey@0, ps_availqty@1, ps_supplycost@2 ]
82+ 07)------------AggregateExec: mode=FinalPartitioned, gby= [ps_partkey@0 as ps_partkey ], aggr=[sum(partsupp.ps_supplycost * partsupp.ps_availqty)]
83+ 08)--------------CoalesceBatchesExec: target_batch_size=8192
84+ 09)----------------RepartitionExec: partitioning=Hash([ps_partkey@0], 4), input_partitions=4
85+ 10)------------------AggregateExec : mode=Partial, gby=[ps_partkey@0 as ps_partkey ], aggr=[sum(partsupp.ps_supplycost * partsupp.ps_availqty) ]
868611)--------------------CoalesceBatchesExec: target_batch_size=8192
87- 12)----------------------RepartitionExec: partitioning=Hash([ s_nationkey@3], 4), input_partitions=4
87+ 12)----------------------HashJoinExec: mode=Partitioned, join_type=Inner, on=[( s_nationkey@3, n_nationkey@0)], projection=[ps_partkey@0, ps_availqty@1, ps_supplycost@2]
888813)------------------------CoalesceBatchesExec: target_batch_size=8192
89- 14)--------------------------HashJoinExec: mode=Partitioned, join_type=Inner, on=[(ps_suppkey@1, s_suppkey@0)], projection=[ps_partkey@0, ps_availqty@2, ps_supplycost@3, s_nationkey@5]
89+ 14)--------------------------RepartitionExec: partitioning=Hash([s_nationkey@3], 4), input_partitions=4
909015)----------------------------CoalesceBatchesExec: target_batch_size=8192
91- 16)------------------------------RepartitionExec: partitioning=Hash([ ps_suppkey@1], 4), input_partitions=4
92- 17)--------------------------------DataSourceExec: file_groups={4 groups: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:0..2932049], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:2932049..5864098], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:5864098..8796147], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:8796147..11728193]]}, projection=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost], file_type=csv, has_header=false
93- 18)----------------------------CoalesceBatchesExec: target_batch_size=8192
94- 19)------------------------------RepartitionExec: partitioning=Hash([s_suppkey@0 ], 4), input_partitions=4
95- 20)--------------------------------RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1
96- 21)----------------------------------DataSourceExec: file_groups={1 group: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/supplier.tbl]]}, projection=[ s_suppkey, s_nationkey ], file_type=csv, has_header=false
97- 22)--------------------CoalesceBatchesExec: target_batch_size=8192
98- 23)----------------------RepartitionExec: partitioning=Hash([n_nationkey@0], 4), input_partitions=4
91+ 16)------------------------------HashJoinExec: mode=Partitioned, join_type=Inner, on=[( ps_suppkey@1, s_suppkey@0)], projection=[ps_partkey@0, ps_availqty@2, ps_supplycost@3, s_nationkey@5]
92+ 17)--------------------------------CoalesceBatchesExec: target_batch_size=8192
93+ 18)----------------------------------RepartitionExec: partitioning=Hash([ps_suppkey@1], 4), input_partitions=4
94+ 19)------------------------------------DataSourceExec: file_groups={4 groups: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:0..2932049 ], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:2932049..5864098], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:5864098..8796147], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:8796147..11728193]]}, projection=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost], file_type=csv, has_header=false
95+ 20)--------------------------------CoalesceBatchesExec: target_batch_size=8192
96+ 21)----------------------------------RepartitionExec: partitioning=Hash([ s_suppkey@0 ], 4), input_partitions=4
97+ 22)------------------------------------RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1
98+ 23)--------------------------------------DataSourceExec: file_groups={1 group: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/supplier.tbl]]}, projection=[s_suppkey, s_nationkey], file_type=csv, has_header=false
999924)------------------------CoalesceBatchesExec: target_batch_size=8192
100- 25)--------------------------FilterExec: n_name@1 = GERMANY, projection=[n_nationkey@0]
101- 26)----------------------------RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1
102- 27)------------------------------DataSourceExec: file_groups={1 group: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/nation.tbl]]}, projection=[n_nationkey, n_name], file_type=csv, has_header=false
103- 28)------ProjectionExec: expr=[CAST(CAST(sum(partsupp.ps_supplycost * partsupp.ps_availqty)@0 AS Float64) * 0.0001 AS Decimal128(38, 15)) as sum(partsupp.ps_supplycost * partsupp.ps_availqty) * Float64(0.0001)]
104- 29)--------AggregateExec: mode=Final, gby=[], aggr=[sum(partsupp.ps_supplycost * partsupp.ps_availqty)]
105- 30)----------CoalescePartitionsExec
106- 31)------------AggregateExec: mode=Partial, gby=[], aggr=[sum(partsupp.ps_supplycost * partsupp.ps_availqty)]
107- 32)--------------CoalesceBatchesExec: target_batch_size=8192
108- 33)----------------HashJoinExec: mode=Partitioned, join_type=Inner, on=[(s_nationkey@2, n_nationkey@0)], projection=[ps_availqty@0, ps_supplycost@1]
109- 34)------------------CoalesceBatchesExec: target_batch_size=8192
110- 35)--------------------RepartitionExec: partitioning=Hash([s_nationkey@2], 4), input_partitions=4
111- 36)----------------------CoalesceBatchesExec: target_batch_size=8192
112- 37)------------------------HashJoinExec: mode=Partitioned, join_type=Inner, on=[(ps_suppkey@0, s_suppkey@0)], projection=[ps_availqty@1, ps_supplycost@2, s_nationkey@4]
113- 38)--------------------------CoalesceBatchesExec: target_batch_size=8192
114- 39)----------------------------RepartitionExec: partitioning=Hash([ps_suppkey@0], 4), input_partitions=4
115- 40)------------------------------DataSourceExec: file_groups={4 groups: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:0..2932049], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:2932049..5864098], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:5864098..8796147], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:8796147..11728193]]}, projection=[ps_suppkey, ps_availqty, ps_supplycost], file_type=csv, has_header=false
116- 41)--------------------------CoalesceBatchesExec: target_batch_size=8192
117- 42)----------------------------RepartitionExec: partitioning=Hash([s_suppkey@0], 4), input_partitions=4
118- 43)------------------------------RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1
119- 44)--------------------------------DataSourceExec: file_groups={1 group: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/supplier.tbl]]}, projection=[s_suppkey, s_nationkey], file_type=csv, has_header=false
120- 45)------------------CoalesceBatchesExec: target_batch_size=8192
121- 46)--------------------RepartitionExec: partitioning=Hash([n_nationkey@0], 4), input_partitions=4
122- 47)----------------------CoalesceBatchesExec: target_batch_size=8192
123- 48)------------------------FilterExec: n_name@1 = GERMANY, projection=[n_nationkey@0]
124- 49)--------------------------RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1
125- 50)----------------------------DataSourceExec: file_groups={1 group: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/nation.tbl]]}, projection=[n_nationkey, n_name], file_type=csv, has_header=false
100+ 25)--------------------------RepartitionExec: partitioning=Hash([n_nationkey@0], 4), input_partitions=4
101+ 26)----------------------------CoalesceBatchesExec: target_batch_size=8192
102+ 27)------------------------------FilterExec: n_name@1 = GERMANY, projection=[n_nationkey@0]
103+ 28)--------------------------------RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1
104+ 29)----------------------------------DataSourceExec: file_groups={1 group: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/nation.tbl]]}, projection=[n_nationkey, n_name], file_type=csv, has_header=false
105+ 30)------ProjectionExec: expr=[CAST(CAST(sum(partsupp.ps_supplycost * partsupp.ps_availqty)@0 AS Float64) * 0.0001 AS Decimal128(38, 15)) as sum(partsupp.ps_supplycost * partsupp.ps_availqty) * Float64(0.0001)]
106+ 31)--------AggregateExec: mode=Final, gby=[], aggr=[sum(partsupp.ps_supplycost * partsupp.ps_availqty)]
107+ 32)----------CoalescePartitionsExec
108+ 33)------------AggregateExec: mode=Partial, gby=[], aggr=[sum(partsupp.ps_supplycost * partsupp.ps_availqty)]
109+ 34)--------------CoalesceBatchesExec: target_batch_size=8192
110+ 35)----------------HashJoinExec: mode=Partitioned, join_type=Inner, on=[(s_nationkey@2, n_nationkey@0)], projection=[ps_availqty@0, ps_supplycost@1]
111+ 36)------------------CoalesceBatchesExec: target_batch_size=8192
112+ 37)--------------------RepartitionExec: partitioning=Hash([s_nationkey@2], 4), input_partitions=4
113+ 38)----------------------CoalesceBatchesExec: target_batch_size=8192
114+ 39)------------------------HashJoinExec: mode=Partitioned, join_type=Inner, on=[(ps_suppkey@0, s_suppkey@0)], projection=[ps_availqty@1, ps_supplycost@2, s_nationkey@4]
115+ 40)--------------------------CoalesceBatchesExec: target_batch_size=8192
116+ 41)----------------------------RepartitionExec: partitioning=Hash([ps_suppkey@0], 4), input_partitions=4
117+ 42)------------------------------DataSourceExec: file_groups={4 groups: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:0..2932049], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:2932049..5864098], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:5864098..8796147], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/partsupp.tbl:8796147..11728193]]}, projection=[ps_suppkey, ps_availqty, ps_supplycost], file_type=csv, has_header=false
118+ 43)--------------------------CoalesceBatchesExec: target_batch_size=8192
119+ 44)----------------------------RepartitionExec: partitioning=Hash([s_suppkey@0], 4), input_partitions=4
120+ 45)------------------------------RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1
121+ 46)--------------------------------DataSourceExec: file_groups={1 group: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/supplier.tbl]]}, projection=[s_suppkey, s_nationkey], file_type=csv, has_header=false
122+ 47)------------------CoalesceBatchesExec: target_batch_size=8192
123+ 48)--------------------RepartitionExec: partitioning=Hash([n_nationkey@0], 4), input_partitions=4
124+ 49)----------------------CoalesceBatchesExec: target_batch_size=8192
125+ 50)------------------------FilterExec: n_name@1 = GERMANY, projection=[n_nationkey@0]
126+ 51)--------------------------RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1
127+ 52)----------------------------DataSourceExec: file_groups={1 group: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/tpch/data/nation.tbl]]}, projection=[n_nationkey, n_name], file_type=csv, has_header=false
0 commit comments