Skip to content

Commit 74792ff

Browse files
committed
fix test result
1 parent 581ecae commit 74792ff

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

  • datafusion/core/src/datasource/file_format

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ mod tests {
108108
"double_col: Float64",
109109
"date_string_col: Binary",
110110
"string_col: Binary",
111-
"timestamp_col: Timestamp(Microsecond, None)",
111+
"timestamp_col: Timestamp(Microsecond, Some(\"+00:00\"))",
112112
],
113113
x
114114
);
@@ -117,18 +117,18 @@ mod tests {
117117
assert_eq!(batches.len(), 1);
118118

119119
assert_snapshot!(batches_to_string(&batches),@r###"
120-
+----+----------+-------------+--------------+---------+------------+-----------+------------+------------------+------------+---------------------+
121-
| id | bool_col | tinyint_col | smallint_col | int_col | bigint_col | float_col | double_col | date_string_col | string_col | timestamp_col |
122-
+----+----------+-------------+--------------+---------+------------+-----------+------------+------------------+------------+---------------------+
123-
| 4 | true | 0 | 0 | 0 | 0 | 0.0 | 0.0 | 30332f30312f3039 | 30 | 2009-03-01T00:00:00 |
124-
| 5 | false | 1 | 1 | 1 | 10 | 1.1 | 10.1 | 30332f30312f3039 | 31 | 2009-03-01T00:01:00 |
125-
| 6 | true | 0 | 0 | 0 | 0 | 0.0 | 0.0 | 30342f30312f3039 | 30 | 2009-04-01T00:00:00 |
126-
| 7 | false | 1 | 1 | 1 | 10 | 1.1 | 10.1 | 30342f30312f3039 | 31 | 2009-04-01T00:01:00 |
127-
| 2 | true | 0 | 0 | 0 | 0 | 0.0 | 0.0 | 30322f30312f3039 | 30 | 2009-02-01T00:00:00 |
128-
| 3 | false | 1 | 1 | 1 | 10 | 1.1 | 10.1 | 30322f30312f3039 | 31 | 2009-02-01T00:01:00 |
129-
| 0 | true | 0 | 0 | 0 | 0 | 0.0 | 0.0 | 30312f30312f3039 | 30 | 2009-01-01T00:00:00 |
130-
| 1 | false | 1 | 1 | 1 | 10 | 1.1 | 10.1 | 30312f30312f3039 | 31 | 2009-01-01T00:01:00 |
131-
+----+----------+-------------+--------------+---------+------------+-----------+------------+------------------+------------+---------------------+
120+
+----+----------+-------------+--------------+---------+------------+-----------+------------+------------------+------------+----------------------+
121+
| id | bool_col | tinyint_col | smallint_col | int_col | bigint_col | float_col | double_col | date_string_col | string_col | timestamp_col |
122+
+----+----------+-------------+--------------+---------+------------+-----------+------------+------------------+------------+----------------------+
123+
| 4 | true | 0 | 0 | 0 | 0 | 0.0 | 0.0 | 30332f30312f3039 | 30 | 2009-03-01T00:00:00Z |
124+
| 5 | false | 1 | 1 | 1 | 10 | 1.1 | 10.1 | 30332f30312f3039 | 31 | 2009-03-01T00:01:00Z |
125+
| 6 | true | 0 | 0 | 0 | 0 | 0.0 | 0.0 | 30342f30312f3039 | 30 | 2009-04-01T00:00:00Z |
126+
| 7 | false | 1 | 1 | 1 | 10 | 1.1 | 10.1 | 30342f30312f3039 | 31 | 2009-04-01T00:01:00Z |
127+
| 2 | true | 0 | 0 | 0 | 0 | 0.0 | 0.0 | 30322f30312f3039 | 30 | 2009-02-01T00:00:00Z |
128+
| 3 | false | 1 | 1 | 1 | 10 | 1.1 | 10.1 | 30322f30312f3039 | 31 | 2009-02-01T00:01:00Z |
129+
| 0 | true | 0 | 0 | 0 | 0 | 0.0 | 0.0 | 30312f30312f3039 | 30 | 2009-01-01T00:00:00Z |
130+
| 1 | false | 1 | 1 | 1 | 10 | 1.1 | 10.1 | 30312f30312f3039 | 31 | 2009-01-01T00:01:00Z |
131+
+----+----------+-------------+--------------+---------+------------+-----------+------------+------------------+------------+----------------------+
132132
"###);
133133
Ok(())
134134
}

0 commit comments

Comments
 (0)