@@ -769,7 +769,7 @@ mod tests {
769
769
use crate :: physical_plan:: repartition:: RepartitionExec ;
770
770
use crate :: physical_plan:: { displayable, get_plan_string, Partitioning } ;
771
771
use crate :: prelude:: { SessionConfig , SessionContext } ;
772
- use crate :: test:: csv_exec_sorted;
772
+ use crate :: test:: { csv_exec_sorted, stream_exec_ordered } ;
773
773
774
774
use arrow:: compute:: SortOptions ;
775
775
use arrow:: datatypes:: { DataType , Field , Schema , SchemaRef } ;
@@ -2141,11 +2141,11 @@ mod tests {
2141
2141
}
2142
2142
2143
2143
#[ tokio:: test]
2144
- #[ ignore]
2145
2144
async fn test_with_lost_ordering_unbounded ( ) -> Result < ( ) > {
2146
2145
let schema = create_test_schema3 ( ) ?;
2147
2146
let sort_exprs = vec ! [ sort_expr( "a" , & schema) ] ;
2148
- let source = csv_exec_sorted ( & schema, sort_exprs) ;
2147
+ // create an unbounded source
2148
+ let source = stream_exec_ordered ( & schema, sort_exprs) ;
2149
2149
let repartition_rr = repartition_exec ( source) ;
2150
2150
let repartition_hash = Arc :: new ( RepartitionExec :: try_new (
2151
2151
repartition_rr,
@@ -2159,25 +2159,24 @@ mod tests {
2159
2159
" CoalescePartitionsExec" ,
2160
2160
" RepartitionExec: partitioning=Hash([c@2], 10), input_partitions=10" ,
2161
2161
" RepartitionExec: partitioning=RoundRobinBatch(10), input_partitions=1" ,
2162
- " CsvExec: file_groups={1 group: [[x]]} , projection=[a, b, c, d, e], infinite_source=true, output_ordering=[a@0 ASC], has_header=false"
2162
+ " StreamingTableExec: partition_sizes=1 , projection=[a, b, c, d, e], infinite_source=true, output_ordering=[a@0 ASC]" ,
2163
2163
] ;
2164
2164
let expected_optimized = [
2165
2165
"SortPreservingMergeExec: [a@0 ASC]" ,
2166
2166
" RepartitionExec: partitioning=Hash([c@2], 10), input_partitions=10, preserve_order=true, sort_exprs=a@0 ASC" ,
2167
2167
" RepartitionExec: partitioning=RoundRobinBatch(10), input_partitions=1" ,
2168
- " CsvExec: file_groups={1 group: [[x]]} , projection=[a, b, c, d, e], infinite_source=true, output_ordering=[a@0 ASC], has_header=false " ,
2168
+ " StreamingTableExec: partition_sizes=1 , projection=[a, b, c, d, e], infinite_source=true, output_ordering=[a@0 ASC]" ,
2169
2169
] ;
2170
2170
assert_optimized ! ( expected_input, expected_optimized, physical_plan, true ) ;
2171
2171
Ok ( ( ) )
2172
2172
}
2173
2173
2174
2174
#[ tokio:: test]
2175
- #[ ignore]
2176
2175
async fn test_with_lost_ordering_unbounded_parallelize_off ( ) -> Result < ( ) > {
2177
2176
let schema = create_test_schema3 ( ) ?;
2178
2177
let sort_exprs = vec ! [ sort_expr( "a" , & schema) ] ;
2179
- // Make source unbounded
2180
- let source = csv_exec_sorted ( & schema, sort_exprs) ;
2178
+ // create an unbounded source
2179
+ let source = stream_exec_ordered ( & schema, sort_exprs) ;
2181
2180
let repartition_rr = repartition_exec ( source) ;
2182
2181
let repartition_hash = Arc :: new ( RepartitionExec :: try_new (
2183
2182
repartition_rr,
@@ -2190,13 +2189,13 @@ mod tests {
2190
2189
" CoalescePartitionsExec" ,
2191
2190
" RepartitionExec: partitioning=Hash([c@2], 10), input_partitions=10" ,
2192
2191
" RepartitionExec: partitioning=RoundRobinBatch(10), input_partitions=1" ,
2193
- " CsvExec: file_groups={1 group: [[x]]} , projection=[a, b, c, d, e], infinite_source=true, output_ordering=[a@0 ASC], has_header=false"
2192
+ " StreamingTableExec: partition_sizes=1 , projection=[a, b, c, d, e], infinite_source=true, output_ordering=[a@0 ASC]" ,
2194
2193
] ;
2195
2194
let expected_optimized = [
2196
2195
"SortPreservingMergeExec: [a@0 ASC]" ,
2197
2196
" RepartitionExec: partitioning=Hash([c@2], 10), input_partitions=10, preserve_order=true, sort_exprs=a@0 ASC" ,
2198
2197
" RepartitionExec: partitioning=RoundRobinBatch(10), input_partitions=1" ,
2199
- " CsvExec: file_groups={1 group: [[x]]} , projection=[a, b, c, d, e], infinite_source=true, output_ordering=[a@0 ASC], has_header=false " ,
2198
+ " StreamingTableExec: partition_sizes=1 , projection=[a, b, c, d, e], infinite_source=true, output_ordering=[a@0 ASC]" ,
2200
2199
] ;
2201
2200
assert_optimized ! ( expected_input, expected_optimized, physical_plan, false ) ;
2202
2201
Ok ( ( ) )
0 commit comments