File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed
vortex-duckdb/src/convert Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ pub trait Compressor {
281281 /// Evaluates all available schemes against the provided statistics and returns
282282 /// the one with the highest compression ratio. Falls back to the default scheme
283283 /// if no scheme provides compression benefits.
284+ #[ allow( clippy:: cognitive_complexity) ]
284285 fn choose_scheme (
285286 stats : & Self :: StatsType ,
286287 is_sample : bool ,
Original file line number Diff line number Diff line change @@ -43,10 +43,6 @@ fn like_pattern_str(value: &duckdb::Expression) -> VortexResult<Option<String>>
4343 }
4444}
4545
46- #[ expect(
47- clippy:: cognitive_complexity,
48- reason = "complexity from exhaustive match on expression types"
49- ) ]
5046pub fn try_from_bound_expression ( value : & duckdb:: Expression ) -> VortexResult < Option < Expression > > {
5147 let Some ( value) = value. as_class ( ) else {
5248 tracing:: debug!( "no expression class id {:?}" , value. as_class_id( ) ) ;
Original file line number Diff line number Diff line change @@ -325,6 +325,7 @@ pub unsafe extern "C-unwind" fn vx_file_scan(
325325 } )
326326}
327327
328+ #[ allow( clippy:: cognitive_complexity) ]
328329fn make_object_store (
329330 url : & Url ,
330331 property_keys : & [ String ] ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ use vortex::error::VortexResult;
2323use vortex:: error:: vortex_bail;
2424use vortex:: utils:: aliases:: hash_map:: HashMap ;
2525
26+ #[ expect( clippy:: cognitive_complexity) ]
2627pub ( crate ) fn make_object_store (
2728 url : & Url ,
2829 properties : & HashMap < String , String > ,
@@ -129,7 +130,7 @@ pub(crate) fn make_object_store(
129130 // Guard dropped at close of scope.
130131 }
131132
132- let duration = std :: time :: Instant :: now ( ) . duration_since ( start ) ;
133+ let duration = start . elapsed ( ) ;
133134 tracing:: debug!( "make_object_store latency = {duration:?}" ) ;
134135
135136 Ok ( ( store, scheme) )
You can’t perform that action at this time.
0 commit comments