Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ fn test_idempotent_window_over_multi_partition() {
])
.unwrap();

let dist = Distribution::HashPartitioned(vec![Arc::new(Column::new("a", 0))]);
let dist = Distribution::KeyPartitioned(vec![Arc::new(Column::new("a", 0))]);
let window_like: Arc<dyn ExecutionPlan> =
Arc::new(MockReqExec::new(source, dist, Some(ord)));

Expand Down
10 changes: 5 additions & 5 deletions datafusion/core/tests/physical_optimizer/projection_pushdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ fn test_output_req_after_projection() -> Result<()> {
]
.into(),
)),
Distribution::HashPartitioned(vec![
Distribution::KeyPartitioned(vec![
Arc::new(Column::new("a", 0)),
Arc::new(Column::new("b", 1)),
]),
Expand All @@ -746,7 +746,7 @@ fn test_output_req_after_projection() -> Result<()> {
actual,
@r"
ProjectionExec: expr=[c@2 as c, a@0 as new_a, b@1 as b]
OutputRequirementExec: order_by=[(b@1, asc), (c@2 + a@0, asc)], dist_by=HashPartitioned[[a@0, b@1]])
OutputRequirementExec: order_by=[(b@1, asc), (c@2 + a@0, asc)], dist_by=KeyPartitioned[[a@0, b@1]])
DataSourceExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], file_type=csv, has_header=false
"
);
Expand All @@ -762,7 +762,7 @@ fn test_output_req_after_projection() -> Result<()> {
assert_snapshot!(
actual,
@r"
OutputRequirementExec: order_by=[(b@2, asc), (c@0 + new_a@1, asc)], dist_by=HashPartitioned[[new_a@1, b@2]])
OutputRequirementExec: order_by=[(b@2, asc), (c@0 + new_a@1, asc)], dist_by=KeyPartitioned[[new_a@1, b@2]])
DataSourceExec: file_groups={1 group: [[x]]}, projection=[c, a@0 as new_a, b], file_type=csv, has_header=false
"
);
Expand Down Expand Up @@ -797,7 +797,7 @@ fn test_output_req_after_projection() -> Result<()> {
Arc::new(Column::new("new_a", 1)),
Arc::new(Column::new("b", 2)),
];
if let Distribution::HashPartitioned(vec) = after_optimize
if let Distribution::KeyPartitioned(vec) = after_optimize
.downcast_ref::<OutputRequirementExec>()
.unwrap()
.required_input_distribution()[0]
Expand All @@ -809,7 +809,7 @@ fn test_output_req_after_projection() -> Result<()> {
.all(|(actual, expected)| actual.eq(&expected))
);
} else {
panic!("Expected HashPartitioned distribution!");
panic!("Expected KeyPartitioned distribution!");
};

Ok(())
Expand Down
Loading
Loading