File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed
Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ tokio-stream = { workspace = true }
7373tokio-util = { workspace = true }
7474tpchgen = { workspace = true }
7575tpchgen-arrow = { workspace = true }
76- tracing = { workspace = true , features = [" max_level_trace " ] }
76+ tracing = { workspace = true , features = [" max_level_debug " ] }
7777tracing-perfetto = { workspace = true }
7878tracing-subscriber = { workspace = true , features = [
7979 " env-filter" ,
Original file line number Diff line number Diff line change @@ -201,6 +201,12 @@ impl TemporalArray {
201201 }
202202}
203203
204+ impl AsRef < dyn Array > for TemporalArray {
205+ fn as_ref ( & self ) -> & dyn Array {
206+ self . ext . as_ref ( )
207+ }
208+ }
209+
204210impl From < TemporalArray > for ArrayRef {
205211 fn from ( value : TemporalArray ) -> Self {
206212 value. ext . into_array ( )
Original file line number Diff line number Diff line change 7171 Nullability :: NonNullable ,
7272 ) ;
7373
74- // let expr = expr.optimize_recursive(scope)?;
74+ let expr = expr. optimize_recursive ( scope) ?;
7575 let expr_dtype = expr. return_dtype ( scope) ?;
7676
7777 partitions. push ( expr) ;
Original file line number Diff line number Diff line change @@ -477,13 +477,9 @@ impl BtrBlocksCompressor {
477477 if let Ok ( temporal_array) = TemporalArray :: try_from ( ext_array. to_array ( ) )
478478 && let TemporalMetadata :: Timestamp ( ..) = temporal_array. temporal_metadata ( )
479479 {
480- let temporal_array_ref = temporal_array. clone ( ) . into_array ( ) ;
481- if temporal_array_ref
482- . as_ref ( )
483- . is_constant_opts ( Cost :: Canonicalize )
484- {
480+ if temporal_array. as_ref ( ) . is_constant_opts ( Cost :: Canonicalize ) {
485481 return Ok ( ConstantArray :: new (
486- temporal_array_ref . scalar_at ( 0 ) ,
482+ temporal_array . as_ref ( ) . scalar_at ( 0 ) ,
487483 ext_array. len ( ) ,
488484 )
489485 . into_array ( ) ) ;
You can’t perform that action at this time.
0 commit comments