File tree Expand file tree Collapse file tree
native/core/src/execution Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2668,9 +2668,9 @@ fn partition_value_to_literal(
26682668 Some ( Value :: LongVal ( v) ) => iceberg:: spec:: Literal :: long ( * v) ,
26692669 Some ( Value :: DateVal ( v) ) => {
26702670 // Convert i64 to i32 for date (days since epoch)
2671- let days = ( * v) . try_into ( ) . map_err ( |_| {
2672- GeneralError ( format ! ( "Date value out of range: {}" , v ) )
2673- } ) ?;
2671+ let days = ( * v)
2672+ . try_into ( )
2673+ . map_err ( |_| GeneralError ( format ! ( "Date value out of range: {}" , v ) ) ) ?;
26742674 iceberg:: spec:: Literal :: date ( days)
26752675 }
26762676 Some ( Value :: TimestampVal ( v) ) => iceberg:: spec:: Literal :: timestamp ( * v) ,
@@ -2716,9 +2716,8 @@ fn partition_value_to_literal(
27162716 bytes. len( )
27172717 ) ) ) ;
27182718 }
2719- let uuid = uuid:: Uuid :: from_slice ( bytes) . map_err ( |e| {
2720- GeneralError ( format ! ( "Failed to parse UUID: {}" , e) )
2721- } ) ?;
2719+ let uuid = uuid:: Uuid :: from_slice ( bytes)
2720+ . map_err ( |e| GeneralError ( format ! ( "Failed to parse UUID: {}" , e) ) ) ?;
27222721 iceberg:: spec:: Literal :: uuid ( uuid)
27232722 }
27242723 Some ( Value :: FixedVal ( bytes) ) => iceberg:: spec:: Literal :: fixed ( bytes. to_vec ( ) ) ,
You can’t perform that action at this time.
0 commit comments