Skip to content

Commit 9311077

Browse files
committed
more
1 parent 6b80086 commit 9311077

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

datafusion/core/tests/physical_optimizer/enforce_sorting.rs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,8 @@ impl EnforceSortingTest {
176176

177177
// return a string with both input and optimized plan
178178
format!(
179-
"let expected_input = [\n\
180-
{expected_input:#?}\n\
181-
];\n
182-
let expected_optimized = [\n\
183-
---------------\n\
184-
];\
185-
{expected_optimized:#?}",
179+
"let expected_input = {expected_input:#?}\n\
180+
let expected_optimized = {expected_optimized:#?}",
186181
)
187182
}
188183
}
@@ -295,17 +290,12 @@ async fn test_remove_unnecessary_sort5() -> Result<()> {
295290
};
296291
insta::assert_snapshot!(test.run(), @r#"
297292
let expected_input = [
298-
[
299293
"SortExec: expr=[a@2 ASC], preserve_partitioning=[false]",
300294
" HashJoinExec: mode=Partitioned, join_type=Inner, on=[(col_a@0, c@2)]",
301295
" DataSourceExec: partitions=1, partition_sizes=[0]",
302296
" DataSourceExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], output_ordering=[a@0 ASC], file_type=parquet",
303297
]
304-
];
305-
306-
let expected_optimized = [
307-
---------------
308-
];[
298+
let expected_optimized = [
309299
"HashJoinExec: mode=Partitioned, join_type=Inner, on=[(col_a@0, c@2)]",
310300
" DataSourceExec: partitions=1, partition_sizes=[0]",
311301
" DataSourceExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], output_ordering=[a@0 ASC], file_type=parquet",

0 commit comments

Comments
 (0)