File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
core/src/datasource/file_format Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ mod tests {
9595 . schema ( )
9696 . fields ( )
9797 . iter ( )
98- . map ( |f| format ! ( "{}: {:? }" , f. name( ) , f. data_type( ) ) )
98+ . map ( |f| format ! ( "{}: {}" , f. name( ) , f. data_type( ) ) )
9999 . collect ( ) ;
100100 assert_eq ! (
101101 vec![
@@ -109,7 +109,7 @@ mod tests {
109109 "double_col: Float64" ,
110110 "date_string_col: Binary" ,
111111 "string_col: Binary" ,
112- "timestamp_col: Timestamp(Microsecond, None )" ,
112+ "timestamp_col: Timestamp(µs )" ,
113113 ] ,
114114 x
115115 ) ;
Original file line number Diff line number Diff line change @@ -815,7 +815,7 @@ mod tests {
815815 . schema ( )
816816 . fields ( )
817817 . iter ( )
818- . map ( |f| format ! ( "{}: {:? }" , f. name( ) , f. data_type( ) ) )
818+ . map ( |f| format ! ( "{}: {}" , f. name( ) , f. data_type( ) ) )
819819 . collect ( ) ;
820820 let y = x. join ( "\n " ) ;
821821 assert_eq ! ( expected, y) ;
@@ -841,7 +841,7 @@ mod tests {
841841 double_col: Float64\n \
842842 date_string_col: Binary\n \
843843 string_col: Binary\n \
844- timestamp_col: Timestamp(Nanosecond, None )";
844+ timestamp_col: Timestamp(ns )";
845845 _run_read_alltypes_plain_parquet ( ForceViews :: No , no_views) . await ?;
846846
847847 let with_views = "id: Int32\n \
@@ -854,7 +854,7 @@ mod tests {
854854 double_col: Float64\n \
855855 date_string_col: BinaryView\n \
856856 string_col: BinaryView\n \
857- timestamp_col: Timestamp(Nanosecond, None )";
857+ timestamp_col: Timestamp(ns )";
858858 _run_read_alltypes_plain_parquet ( ForceViews :: Yes , with_views) . await ?;
859859
860860 Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -1068,7 +1068,7 @@ mod tests {
10681068 . unwrap_err ( ) ;
10691069 assert_contains ! (
10701070 got. to_string( ) ,
1071- "Function 'test' expects NativeType::Numeric but received NativeType::Timestamp(Second, None )"
1071+ "Function 'test' expects NativeType::Numeric but received NativeType::Timestamp(s )"
10721072 ) ;
10731073
10741074 Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ impl ScalarUDFImpl for ToCharFunc {
153153 ColumnarValue :: Array ( _) => to_char_array ( & args) ,
154154 _ => {
155155 exec_err ! (
156- "Format for `to_char` must be non-null Utf8, received {:? }" ,
156+ "Format for `to_char` must be non-null Utf8, received {}" ,
157157 format. data_type( )
158158 )
159159 }
@@ -814,7 +814,7 @@ mod tests {
814814 let result = ToCharFunc :: new ( ) . invoke_with_args ( args) ;
815815 assert_eq ! (
816816 result. err( ) . unwrap( ) . strip_backtrace( ) ,
817- "Execution error: Format for `to_char` must be non-null Utf8, received Timestamp(Nanosecond, None )"
817+ "Execution error: Format for `to_char` must be non-null Utf8, received Timestamp(ns )"
818818 ) ;
819819 }
820820}
You can’t perform that action at this time.
0 commit comments