@@ -2216,9 +2216,9 @@ mod tests {
2216
2216
) ?) ;
2217
2217
let initial = get_plan_string ( & projection) ;
2218
2218
let expected_initial = [
2219
- "ProjectionExec: expr=[c@2 as c_from_left, b@1 as b_from_left, a@0 as a_from_left, a@5 as a_from_right, c@7 as c_from_right]" ,
2220
- " SymmetricHashJoinExec: mode=SinglePartition, join_type=Inner, on=[(b@1, c@2)], filter=b_left_inter@0 - 1 + a_right_inter@1 <= a_right_inter@1 + c_left_inter@2" ,
2221
- " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2219
+ "ProjectionExec: expr=[c@2 as c_from_left, b@1 as b_from_left, a@0 as a_from_left, a@5 as a_from_right, c@7 as c_from_right]" ,
2220
+ " SymmetricHashJoinExec: mode=SinglePartition, join_type=Inner, on=[(b@1, c@2)], filter=b_left_inter@0 - 1 + a_right_inter@1 <= a_right_inter@1 + c_left_inter@2" ,
2221
+ " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2222
2222
" CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false"
2223
2223
] ;
2224
2224
assert_eq ! ( initial, expected_initial) ;
@@ -2227,10 +2227,10 @@ mod tests {
2227
2227
ProjectionPushdown :: new ( ) . optimize ( projection, & ConfigOptions :: new ( ) ) ?;
2228
2228
2229
2229
let expected = [
2230
- "SymmetricHashJoinExec: mode=SinglePartition, join_type=Inner, on=[(b_from_left@1, c_from_right@1)], filter=b_left_inter@0 - 1 + a_right_inter@1 <= a_right_inter@1 + c_left_inter@2" ,
2231
- " ProjectionExec: expr=[c@2 as c_from_left, b@1 as b_from_left, a@0 as a_from_left]" ,
2232
- " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2233
- " ProjectionExec: expr=[a@0 as a_from_right, c@2 as c_from_right]" ,
2230
+ "SymmetricHashJoinExec: mode=SinglePartition, join_type=Inner, on=[(b_from_left@1, c_from_right@1)], filter=b_left_inter@0 - 1 + a_right_inter@1 <= a_right_inter@1 + c_left_inter@2" ,
2231
+ " ProjectionExec: expr=[c@2 as c_from_left, b@1 as b_from_left, a@0 as a_from_left]" ,
2232
+ " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2233
+ " ProjectionExec: expr=[a@0 as a_from_right, c@2 as c_from_right]" ,
2234
2234
" CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false"
2235
2235
] ;
2236
2236
assert_eq ! ( get_plan_string( & after_optimize) , expected) ;
@@ -2335,9 +2335,9 @@ mod tests {
2335
2335
) ?) ;
2336
2336
let initial = get_plan_string ( & projection) ;
2337
2337
let expected_initial = [
2338
- "ProjectionExec: expr=[a@5 as a, b@6 as b, c@7 as c, d@8 as d, e@9 as e, a@0 as a, b@1 as b, c@2 as c, d@3 as d, e@4 as e]" ,
2339
- " SymmetricHashJoinExec: mode=SinglePartition, join_type=Inner, on=[(b@1, c@2)], filter=b_left_inter@0 - 1 + a_right_inter@1 <= a_right_inter@1 + c_left_inter@2" ,
2340
- " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2338
+ "ProjectionExec: expr=[a@5 as a, b@6 as b, c@7 as c, d@8 as d, e@9 as e, a@0 as a, b@1 as b, c@2 as c, d@3 as d, e@4 as e]" ,
2339
+ " SymmetricHashJoinExec: mode=SinglePartition, join_type=Inner, on=[(b@1, c@2)], filter=b_left_inter@0 - 1 + a_right_inter@1 <= a_right_inter@1 + c_left_inter@2" ,
2340
+ " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2341
2341
" CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false"
2342
2342
] ;
2343
2343
assert_eq ! ( initial, expected_initial) ;
@@ -2346,9 +2346,9 @@ mod tests {
2346
2346
ProjectionPushdown :: new ( ) . optimize ( projection, & ConfigOptions :: new ( ) ) ?;
2347
2347
2348
2348
let expected = [
2349
- "ProjectionExec: expr=[a@5 as a, b@6 as b, c@7 as c, d@8 as d, e@9 as e, a@0 as a, b@1 as b, c@2 as c, d@3 as d, e@4 as e]" ,
2350
- " SymmetricHashJoinExec: mode=SinglePartition, join_type=Inner, on=[(b@1, c@2)], filter=b_left_inter@0 - 1 + a_right_inter@1 <= a_right_inter@1 + c_left_inter@2" ,
2351
- " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2349
+ "ProjectionExec: expr=[a@5 as a, b@6 as b, c@7 as c, d@8 as d, e@9 as e, a@0 as a, b@1 as b, c@2 as c, d@3 as d, e@4 as e]" ,
2350
+ " SymmetricHashJoinExec: mode=SinglePartition, join_type=Inner, on=[(b@1, c@2)], filter=b_left_inter@0 - 1 + a_right_inter@1 <= a_right_inter@1 + c_left_inter@2" ,
2351
+ " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2352
2352
" CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false"
2353
2353
] ;
2354
2354
assert_eq ! ( get_plan_string( & after_optimize) , expected) ;
@@ -2502,8 +2502,8 @@ mod tests {
2502
2502
ProjectionPushdown :: new ( ) . optimize ( projection, & ConfigOptions :: new ( ) ) ?;
2503
2503
2504
2504
let expected = [
2505
- "RepartitionExec: partitioning=Hash([a@1, b_new@0, d_new@2], 6), input_partitions=1" ,
2506
- " ProjectionExec: expr=[b@1 as b_new, a@0 as a, d@3 as d_new]" ,
2505
+ "RepartitionExec: partitioning=Hash([a@1, b_new@0, d_new@2], 6), input_partitions=1" ,
2506
+ " ProjectionExec: expr=[b@1 as b_new, a@0 as a, d@3 as d_new]" ,
2507
2507
" CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2508
2508
] ;
2509
2509
assert_eq ! ( get_plan_string( & after_optimize) , expected) ;
@@ -2560,7 +2560,7 @@ mod tests {
2560
2560
let initial = get_plan_string ( & projection) ;
2561
2561
let expected_initial = [
2562
2562
"ProjectionExec: expr=[c@2 as c, a@0 as new_a, b@1 as b]" ,
2563
- " SortExec: expr=[b@1 ASC,c@2 + a@0 ASC]" ,
2563
+ " SortExec: expr=[b@1 ASC,c@2 + a@0 ASC], preserve_partitioning=[false] " ,
2564
2564
" CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false"
2565
2565
] ;
2566
2566
assert_eq ! ( initial, expected_initial) ;
@@ -2569,7 +2569,7 @@ mod tests {
2569
2569
ProjectionPushdown :: new ( ) . optimize ( projection, & ConfigOptions :: new ( ) ) ?;
2570
2570
2571
2571
let expected = [
2572
- "SortExec: expr=[b@2 ASC,c@0 + new_a@1 ASC]" ,
2572
+ "SortExec: expr=[b@2 ASC,c@0 + new_a@1 ASC], preserve_partitioning=[false] " ,
2573
2573
" ProjectionExec: expr=[c@2 as c, a@0 as new_a, b@1 as b]" ,
2574
2574
" CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false"
2575
2575
] ;
@@ -2644,10 +2644,10 @@ mod tests {
2644
2644
2645
2645
let initial = get_plan_string ( & projection) ;
2646
2646
let expected_initial = [
2647
- "ProjectionExec: expr=[c@2 as c, a@0 as new_a, b@1 as b]" ,
2648
- " UnionExec" ,
2649
- " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2650
- " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2647
+ "ProjectionExec: expr=[c@2 as c, a@0 as new_a, b@1 as b]" ,
2648
+ " UnionExec" ,
2649
+ " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2650
+ " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2651
2651
" CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false"
2652
2652
] ;
2653
2653
assert_eq ! ( initial, expected_initial) ;
@@ -2656,12 +2656,12 @@ mod tests {
2656
2656
ProjectionPushdown :: new ( ) . optimize ( projection, & ConfigOptions :: new ( ) ) ?;
2657
2657
2658
2658
let expected = [
2659
- "UnionExec" ,
2660
- " ProjectionExec: expr=[c@2 as c, a@0 as new_a, b@1 as b]" ,
2661
- " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2662
- " ProjectionExec: expr=[c@2 as c, a@0 as new_a, b@1 as b]" ,
2663
- " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2664
- " ProjectionExec: expr=[c@2 as c, a@0 as new_a, b@1 as b]" ,
2659
+ "UnionExec" ,
2660
+ " ProjectionExec: expr=[c@2 as c, a@0 as new_a, b@1 as b]" ,
2661
+ " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2662
+ " ProjectionExec: expr=[c@2 as c, a@0 as new_a, b@1 as b]" ,
2663
+ " CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false" ,
2664
+ " ProjectionExec: expr=[c@2 as c, a@0 as new_a, b@1 as b]" ,
2665
2665
" CsvExec: file_groups={1 group: [[x]]}, projection=[a, b, c, d, e], has_header=false"
2666
2666
] ;
2667
2667
assert_eq ! ( get_plan_string( & after_optimize) , expected) ;
0 commit comments