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 @@ -2647,9 +2647,9 @@ fn partition_value_to_literal(
26472647 Some ( Value :: LongVal ( v) ) => iceberg:: spec:: Literal :: long ( * v) ,
26482648 Some ( Value :: DateVal ( v) ) => {
26492649 // Convert i64 to i32 for date (days since epoch)
2650- let days = ( * v) . try_into ( ) . map_err ( |_| {
2651- GeneralError ( format ! ( "Date value out of range: {}" , v ) )
2652- } ) ?;
2650+ let days = ( * v)
2651+ . try_into ( )
2652+ . map_err ( |_| GeneralError ( format ! ( "Date value out of range: {}" , v ) ) ) ?;
26532653 iceberg:: spec:: Literal :: date ( days)
26542654 }
26552655 Some ( Value :: TimestampVal ( v) ) => iceberg:: spec:: Literal :: timestamp ( * v) ,
@@ -2695,9 +2695,8 @@ fn partition_value_to_literal(
26952695 bytes. len( )
26962696 ) ) ) ;
26972697 }
2698- let uuid = uuid:: Uuid :: from_slice ( bytes) . map_err ( |e| {
2699- GeneralError ( format ! ( "Failed to parse UUID: {}" , e) )
2700- } ) ?;
2698+ let uuid = uuid:: Uuid :: from_slice ( bytes)
2699+ . map_err ( |e| GeneralError ( format ! ( "Failed to parse UUID: {}" , e) ) ) ?;
27012700 iceberg:: spec:: Literal :: uuid ( uuid)
27022701 }
27032702 Some ( Value :: FixedVal ( bytes) ) => iceberg:: spec:: Literal :: fixed ( bytes. to_vec ( ) ) ,
You can’t perform that action at this time.
0 commit comments