File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1818use crate :: context:: serialize_execution_plan;
1919use crate :: shuffle:: { ShuffleCodec , ShuffleReaderExec } ;
2020use datafusion:: error:: Result ;
21- use datafusion:: physical_plan:: { ExecutionPlan , Partitioning } ;
21+ use datafusion:: physical_plan:: { ExecutionPlan , ExecutionPlanProperties , Partitioning } ;
2222use datafusion:: prelude:: SessionContext ;
2323use datafusion_proto:: bytes:: physical_plan_from_bytes_with_extension_codec;
2424use pyo3:: prelude:: * ;
@@ -99,10 +99,7 @@ impl QueryStage {
9999 /// Get the input partition count. This is the same as the number of concurrent tasks
100100 /// when we schedule this query stage for execution
101101 pub fn get_input_partition_count ( & self ) -> usize {
102- self . plan . children ( ) [ 0 ]
103- . properties ( )
104- . output_partitioning ( )
105- . partition_count ( )
102+ self . plan . output_partitioning ( ) . partition_count ( )
106103 }
107104
108105 pub fn get_output_partition_count ( & self ) -> usize {
Original file line number Diff line number Diff line change 1717
1818from datafusion_ray .context import DatafusionRayContext
1919from datafusion import SessionContext
20- import pytest
2120
2221
2322def test_basic_query_succeed ():
You can’t perform that action at this time.
0 commit comments