Skip to content

Commit fa157af

Browse files
committed
Update more tests
1 parent 0662252 commit fa157af

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

datafusion/core/src/datasource/file_format/avro.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
);

datafusion/core/src/datasource/file_format/parquet.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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(())

datafusion/expr/src/type_coercion/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(())

datafusion/functions/src/datetime/to_char.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)