File tree 10 files changed +423
-416
lines changed
10 files changed +423
-416
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,8 @@ jobs:
116
116
cargo test --no-default-features
117
117
cargo run --example csv_sql
118
118
cargo run --example parquet_sql
119
- # cargo run --example avro_sql --features=datafusion/avro
119
+ #nopass
120
+ cargo run --example avro_sql --features=datafusion/avro
120
121
env :
121
122
CARGO_HOME : " /github/home/.cargo"
122
123
CARGO_TARGET_DIR : " /github/home/target"
@@ -127,6 +128,7 @@ jobs:
127
128
export PARQUET_TEST_DATA=$(pwd)/parquet-testing/data
128
129
cd ballista/rust
129
130
# snmalloc requires cmake so build without default features
131
+ #nopass
130
132
cargo test --no-default-features --features sled
131
133
env :
132
134
CARGO_HOME : " /github/home/.cargo"
Original file line number Diff line number Diff line change @@ -78,9 +78,7 @@ impl Executor {
78
78
job_id,
79
79
stage_id,
80
80
part,
81
- DisplayableExecutionPlan :: with_metrics( & exec)
82
- . indent( )
83
- . to_string( )
81
+ DisplayableExecutionPlan :: with_metrics( & exec) . indent( )
84
82
) ;
85
83
86
84
Ok ( partitions)
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ mod test {
293
293
. plan_query_stages ( & job_uuid. to_string ( ) , plan)
294
294
. await ?;
295
295
for stage in & stages {
296
- println ! ( "{}" , displayable( stage. as_ref( ) ) . indent( ) . to_string ( ) ) ;
296
+ println ! ( "{}" , displayable( stage. as_ref( ) ) . indent( ) ) ;
297
297
}
298
298
299
299
/* Expected result:
@@ -407,7 +407,7 @@ order by
407
407
. plan_query_stages ( & job_uuid. to_string ( ) , plan)
408
408
. await ?;
409
409
for stage in & stages {
410
- println ! ( "{}" , displayable( stage. as_ref( ) ) . indent( ) . to_string ( ) ) ;
410
+ println ! ( "{}" , displayable( stage. as_ref( ) ) . indent( ) ) ;
411
411
}
412
412
413
413
/* Expected result:
Original file line number Diff line number Diff line change @@ -540,16 +540,14 @@ async fn execute_query(
540
540
if debug {
541
541
println ! (
542
542
"=== Physical plan ===\n {}\n " ,
543
- displayable( physical_plan. as_ref( ) ) . indent( ) . to_string ( )
543
+ displayable( physical_plan. as_ref( ) ) . indent( )
544
544
) ;
545
545
}
546
546
let result = collect ( physical_plan. clone ( ) ) . await ?;
547
547
if debug {
548
548
println ! (
549
549
"=== Physical plan with metrics ===\n {}\n " ,
550
- DisplayableExecutionPlan :: with_metrics( physical_plan. as_ref( ) )
551
- . indent( )
552
- . to_string( )
550
+ DisplayableExecutionPlan :: with_metrics( physical_plan. as_ref( ) ) . indent( )
553
551
) ;
554
552
print:: print ( & result) ;
555
553
}
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ pub struct Rank {
38
38
}
39
39
40
40
#[ derive( Debug , Copy , Clone ) ]
41
+ #[ allow( clippy:: enum_variant_names) ]
41
42
pub ( crate ) enum RankType {
42
43
Rank ,
43
44
DenseRank ,
Original file line number Diff line number Diff line change @@ -341,12 +341,7 @@ macro_rules! get_min_max_values {
341
341
} ;
342
342
343
343
let data_type = field. data_type( ) ;
344
- let null_scalar: ScalarValue = if let Ok ( v) = data_type. try_into( ) {
345
- v
346
- } else {
347
- // DataFusion doesn't have support for ScalarValues of the column type
348
- return None
349
- } ;
344
+ let null_scalar: ScalarValue = data_type. try_into( ) . ok( ) ?;
350
345
351
346
let scalar_values : Vec <ScalarValue > = $self. row_group_metadata
352
347
. iter( )
You can’t perform that action at this time.
0 commit comments