alamb commented on code in PR #25304:
URL: https://github.com/apache/datafusion/pull/25304#discussion_r4686700124
##########
datafusion/sqllogictest/test_files/repartition_subset_satisfaction.slt:
##########
@@ -363,11 +363,10 @@ physical_plan
08)--------------AggregateExec: mode=FinalPartitioned, gby=[f_dkey@0 as
f_dkey, date_bin(IntervalMonthDayNano("IntervalMonthDayNano { months: 0, days:
0, nanoseconds: 30000000000 }"),j.timestamp)@1 as
date_bin(IntervalMonthDayNano("IntervalMonthDayNano { months: 0, days: 0,
nanoseconds: 30000000000 }"),j.timestamp), env@2 as env], aggr=[max(j.value)],
group_clustering_mode=Partial([0, 1])
09)----------------RepartitionExec: partitioning=Hash([f_dkey@0,
date_bin(IntervalMonthDayNano("IntervalMonthDayNano { months: 0, days: 0,
nanoseconds: 30000000000 }"),j.timestamp)@1, env@2], 3), input_partitions=3,
preserve_order=true, sort_exprs=f_dkey@0 ASC NULLS LAST,
date_bin(IntervalMonthDayNano("IntervalMonthDayNano { months: 0, days: 0,
nanoseconds: 30000000000 }"),j.timestamp)@1 ASC NULLS LAST
10)------------------AggregateExec: mode=Partial, gby=[f_dkey@0 as f_dkey,
date_bin(IntervalMonthDayNano { months: 0, days: 0, nanoseconds: 30000000000 },
timestamp@2) as date_bin(IntervalMonthDayNano("IntervalMonthDayNano { months:
0, days: 0, nanoseconds: 30000000000 }"),j.timestamp), env@1 as env],
aggr=[max(j.value)], group_clustering_mode=Partial([0, 1])
-11)--------------------HashJoinExec: mode=CollectLeft, join_type=Inner,
on=[(d_dkey@1, f_dkey@2)], projection=[f_dkey@4, env@0, timestamp@2, value@3]
-12)----------------------CoalescePartitionsExec
-13)------------------------FilterExec: service@1 = log, projection=[env@0,
d_dkey@2]
-14)--------------------------DataSourceExec: file_groups={3 groups:
[[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/repartition_subset_satisfaction/dimension/d_dkey=A/data.parquet],
[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/repartition_subset_satisfaction/dimension/d_dkey=B/data.parquet],
[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/repartition_subset_satisfaction/dimension/d_dkey=C/data.parquet]]},
projection=[env, service, d_dkey], output_partitioning=Range([d_dkey@2 ASC],
[(B), (C)], 3), file_type=parquet, predicate=service@1 = log,
pruning_predicate=service_null_count@2 != row_count@3 AND service_min@0 <= log
AND log <= service_max@1, required_guarantees=[service in (log)]
-15)----------------------DataSourceExec: file_groups={3 groups:
[[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/repartition_subset_satisfaction/fact/f_dkey=A/data.parquet],
[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/repartition_subset_satisfaction/fact/f_dkey=B/data.parquet],
[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/repartition_subset_satisfaction/fact/f_dkey=C/data.parquet]]},
projection=[timestamp, value, f_dkey], output_ordering=[f_dkey@2 ASC NULLS
LAST, timestamp@0 ASC NULLS LAST], output_partitioning=Range([f_dkey@2 ASC],
[(B), (C)], 3), file_type=parquet, predicate=DynamicFilter [ empty ],
dynamic_rg_pruning=eligible
+11)--------------------HashJoinExec: mode=Partitioned, join_type=Inner,
on=[(d_dkey@1, f_dkey@2)], projection=[f_dkey@4, env@0, timestamp@2, value@3]
+12)----------------------FilterExec: service@1 = log, projection=[env@0,
d_dkey@2]
+13)------------------------DataSourceExec: file_groups={3 groups:
[[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/repartition_subset_satisfaction/dimension/d_dkey=A/data.parquet],
[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/repartition_subset_satisfaction/dimension/d_dkey=B/data.parquet],
[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/repartition_subset_satisfaction/dimension/d_dkey=C/data.parquet]]},
projection=[env, service, d_dkey], output_partitioning=Range([d_dkey@2 ASC],
[(B), (C)], 3), file_type=parquet, predicate=service@1 = log,
pruning_predicate=service_null_count@2 != row_count@3 AND service_min@0 <= log
AND log <= service_max@1, required_guarantees=[service in (log)]
+14)----------------------DataSourceExec: file_groups={3 groups:
[[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/repartition_subset_satisfaction/fact/f_dkey=A/data.parquet],
[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/repartition_subset_satisfaction/fact/f_dkey=B/data.parquet],
[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/repartition_subset_satisfaction/fact/f_dkey=C/data.parquet]]},
projection=[timestamp, value, f_dkey], output_ordering=[f_dkey@2 ASC NULLS
LAST, timestamp@0 ASC NULLS LAST], output_partitioning=Range([f_dkey@2 ASC],
[(B), (C)], 3), file_type=parquet, predicate=DynamicFilter [ empty ],
dynamic_rg_pruning=eligible
Review Comment:
both inputs look like they have the same partitioning so it makes sense to
me that this is no longer collect left
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]