Skip to content

Commit d2321b2

Browse files
committed
update expected plans
1 parent 9809013 commit d2321b2

File tree

21 files changed

+45
-476
lines changed

21 files changed

+45
-476
lines changed

src/query_stage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// under the License.
1717

1818
use crate::context::serialize_execution_plan;
19-
use crate::shuffle::{ShuffleCodec, ShuffleReaderExec, ShuffleWriterExec};
19+
use crate::shuffle::{ShuffleCodec, ShuffleReaderExec};
2020
use datafusion::error::Result;
2121
use datafusion::physical_plan::{ExecutionPlan, ExecutionPlanProperties, Partitioning};
2222
use datafusion::prelude::SessionContext;

testdata/expected-plans/q1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ShuffleWriterExec(stage_id=1, output_partitioning=Hash([Column { name: "l_return
4242
CoalesceBatchesExec: target_batch_size=8192
4343
ShuffleReaderExec(stage_id=0, input_partitioning=Hash([Column { name: "l_returnflag", index: 0 }, Column { name: "l_linestatus", index: 1 }], 2))
4444

45-
Query Stage #2 (1 -> 1):
45+
Query Stage #2 (2 -> 1):
4646
SortPreservingMergeExec: [l_returnflag@0 ASC NULLS LAST,l_linestatus@1 ASC NULLS LAST]
4747
ShuffleReaderExec(stage_id=1, input_partitioning=Hash([Column { name: "l_returnflag", index: 0 }, Column { name: "l_linestatus", index: 1 }], 2))
4848

testdata/expected-plans/q10.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ SortPreservingMergeExec: [revenue@2 DESC], fetch=20
6060
DataFusion Ray Distributed Plan
6161
===========
6262

63-
Query Stage #0 (2 -> 2):
63+
Query Stage #0 (1 -> 2):
6464
ShuffleWriterExec(stage_id=0, output_partitioning=Hash([Column { name: "n_nationkey", index: 0 }], 2))
6565
ParquetExec: file_groups={ ... }, projection=[n_nationkey, n_name]
6666

@@ -117,7 +117,7 @@ ShuffleWriterExec(stage_id=7, output_partitioning=Hash([Column { name: "c_custke
117117
CoalesceBatchesExec: target_batch_size=8192
118118
ShuffleReaderExec(stage_id=6, input_partitioning=Hash([Column { name: "c_custkey", index: 0 }, Column { name: "c_name", index: 1 }, Column { name: "c_acctbal", index: 2 }, Column { name: "c_phone", index: 3 }, Column { name: "n_name", index: 4 }, Column { name: "c_address", index: 5 }, Column { name: "c_comment", index: 6 }], 2))
119119

120-
Query Stage #8 (1 -> 1):
120+
Query Stage #8 (2 -> 1):
121121
SortPreservingMergeExec: [revenue@2 DESC], fetch=20
122122
ShuffleReaderExec(stage_id=7, input_partitioning=Hash([Column { name: "c_custkey", index: 0 }, Column { name: "c_name", index: 1 }, Column { name: "c_acctbal", index: 3 }, Column { name: "c_phone", index: 6 }, Column { name: "n_name", index: 4 }, Column { name: "c_address", index: 5 }, Column { name: "c_comment", index: 7 }], 2))
123123

testdata/expected-plans/q11.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ SortPreservingMergeExec: [value@1 DESC]
8686
DataFusion Ray Distributed Plan
8787
===========
8888

89-
Query Stage #0 (2 -> 2):
89+
Query Stage #0 (1 -> 2):
9090
ShuffleWriterExec(stage_id=0, output_partitioning=Hash([Column { name: "n_nationkey", index: 0 }], 2))
9191
CoalesceBatchesExec: target_batch_size=8192
9292
FilterExec: n_name@1 = ALGERIA, projection=[n_nationkey@0]
9393
ParquetExec: file_groups={ ... }, projection=[n_nationkey, n_name], predicate=n_name@1 = ALGERIA, pruning_predicate=CASE WHEN n_name_null_count@2 = n_name_row_count@3 THEN false ELSE n_name_min@0 <= ALGERIA AND ALGERIA <= n_name_max@1 END, required_guarantees=[n_name in (ALGERIA)]
9494

95-
Query Stage #1 (2 -> 2):
95+
Query Stage #1 (1 -> 2):
9696
ShuffleWriterExec(stage_id=1, output_partitioning=Hash([Column { name: "s_suppkey", index: 0 }], 2))
9797
ParquetExec: file_groups={ ... }, projection=[s_suppkey, s_nationkey]
9898

@@ -120,13 +120,13 @@ ShuffleWriterExec(stage_id=4, output_partitioning=Hash([], 2))
120120
CoalesceBatchesExec: target_batch_size=8192
121121
ShuffleReaderExec(stage_id=3, input_partitioning=Hash([Column { name: "s_nationkey", index: 2 }], 2))
122122

123-
Query Stage #5 (2 -> 2):
123+
Query Stage #5 (1 -> 2):
124124
ShuffleWriterExec(stage_id=5, output_partitioning=Hash([Column { name: "n_nationkey", index: 0 }], 2))
125125
CoalesceBatchesExec: target_batch_size=8192
126126
FilterExec: n_name@1 = ALGERIA, projection=[n_nationkey@0]
127127
ParquetExec: file_groups={ ... }, projection=[n_nationkey, n_name], predicate=n_name@1 = ALGERIA, pruning_predicate=CASE WHEN n_name_null_count@2 = n_name_row_count@3 THEN false ELSE n_name_min@0 <= ALGERIA AND ALGERIA <= n_name_max@1 END, required_guarantees=[n_name in (ALGERIA)]
128128

129-
Query Stage #6 (2 -> 2):
129+
Query Stage #6 (1 -> 2):
130130
ShuffleWriterExec(stage_id=6, output_partitioning=Hash([Column { name: "s_suppkey", index: 0 }], 2))
131131
ParquetExec: file_groups={ ... }, projection=[s_suppkey, s_nationkey]
132132

@@ -167,7 +167,7 @@ ShuffleWriterExec(stage_id=10, output_partitioning=Hash([Column { name: "ps_part
167167
CoalesceBatchesExec: target_batch_size=8192
168168
ShuffleReaderExec(stage_id=9, input_partitioning=Hash([Column { name: "ps_partkey", index: 0 }], 2))
169169

170-
Query Stage #11 (1 -> 1):
170+
Query Stage #11 (2 -> 1):
171171
SortPreservingMergeExec: [value@1 DESC]
172172
ShuffleReaderExec(stage_id=10, input_partitioning=Hash([Column { name: "ps_partkey", index: 0 }], 2))
173173

testdata/expected-plans/q12.txt

Lines changed: 0 additions & 71 deletions
This file was deleted.

testdata/expected-plans/q13.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ShuffleWriterExec(stage_id=3, output_partitioning=Hash([Column { name: "c_count"
7070
CoalesceBatchesExec: target_batch_size=8192
7171
ShuffleReaderExec(stage_id=2, input_partitioning=Hash([Column { name: "c_count", index: 0 }], 2))
7272

73-
Query Stage #4 (1 -> 1):
73+
Query Stage #4 (2 -> 1):
7474
SortPreservingMergeExec: [custdist@1 DESC,c_count@0 DESC]
7575
ShuffleReaderExec(stage_id=3, input_partitioning=Hash([Column { name: "c_count", index: 0 }], 2))
7676

testdata/expected-plans/q14.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ProjectionExec: expr=[100 * CAST(sum(CASE WHEN part.p_type LIKE Utf8("PROMO%") T
3333
DataFusion Ray Distributed Plan
3434
===========
3535

36-
Query Stage #0 (2 -> 2):
36+
Query Stage #0 (1 -> 2):
3737
ShuffleWriterExec(stage_id=0, output_partitioning=Hash([Column { name: "p_partkey", index: 0 }], 2))
3838
ParquetExec: file_groups={ ... }, projection=[p_partkey, p_type]
3939

0 commit comments

Comments
 (0)