File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
rust/cubesql/cubesql/src/compile/engine/df Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -918,13 +918,7 @@ pub fn transform_response<V: ValueObject>(
918918 field_name,
919919 {
920920 ( FieldValue :: String ( s) , builder) => {
921- let timestamp = parse_date_str( s. as_ref( ) )
922- . map_err( |e| {
923- DataFusionError :: Execution ( format!(
924- "Can't parse timestamp: '{}': {}" ,
925- s, e
926- ) )
927- } ) ?;
921+ let timestamp = parse_date_str( s. as_ref( ) ) ?;
928922 // TODO switch parsing to microseconds
929923 if timestamp. and_utc( ) . timestamp_millis( ) > ( ( ( 1i64 ) << 62 ) / 1_000_000 ) {
930924 builder. append_null( ) ?;
@@ -952,13 +946,7 @@ pub fn transform_response<V: ValueObject>(
952946 field_name,
953947 {
954948 ( FieldValue :: String ( s) , builder) => {
955- let timestamp = parse_date_str( s. as_ref( ) )
956- . map_err( |e| {
957- DataFusionError :: Execution ( format!(
958- "Can't parse timestamp: '{}': {}" ,
959- s, e
960- ) )
961- } ) ?;
949+ let timestamp = parse_date_str( s. as_ref( ) ) ?;
962950 // TODO switch parsing to microseconds
963951 if timestamp. and_utc( ) . timestamp_millis( ) > ( ( ( 1 as i64 ) << 62 ) / 1_000_000 ) {
964952 builder. append_null( ) ?;
You can’t perform that action at this time.
0 commit comments