Skip to content

Commit d647ec6

Browse files
committed
fix test table column type
1 parent d574fe7 commit d647ec6

File tree

1 file changed

+6
-6
lines changed
  • datafusion/sqllogictest/test_files

1 file changed

+6
-6
lines changed

datafusion/sqllogictest/test_files/avro.slt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ CREATE EXTERNAL TABLE alltypes_plain (
3131
float_col FLOAT NOT NULL,
3232
double_col DOUBLE NOT NULL,
3333
date_string_col BYTEA NOT NULL,
34-
string_col VARCHAR NOT NULL,
34+
string_col BYTEA NOT NULL,
3535
timestamp_col TIMESTAMP NOT NULL,
3636
)
3737
STORED AS AVRO
@@ -48,7 +48,7 @@ CREATE EXTERNAL TABLE alltypes_plain_snappy (
4848
float_col FLOAT NOT NULL,
4949
double_col DOUBLE NOT NULL,
5050
date_string_col BYTEA NOT NULL,
51-
string_col VARCHAR NOT NULL,
51+
string_col BYTEA NOT NULL,
5252
timestamp_col TIMESTAMP NOT NULL,
5353
)
5454
STORED AS AVRO
@@ -65,7 +65,7 @@ CREATE EXTERNAL TABLE alltypes_plain_bzip2 (
6565
float_col FLOAT NOT NULL,
6666
double_col DOUBLE NOT NULL,
6767
date_string_col BYTEA NOT NULL,
68-
string_col VARCHAR NOT NULL,
68+
string_col BYTEA NOT NULL,
6969
timestamp_col TIMESTAMP NOT NULL,
7070
)
7171
STORED AS AVRO
@@ -82,7 +82,7 @@ CREATE EXTERNAL TABLE alltypes_plain_xz (
8282
float_col FLOAT NOT NULL,
8383
double_col DOUBLE NOT NULL,
8484
date_string_col BYTEA NOT NULL,
85-
string_col VARCHAR NOT NULL,
85+
string_col BYTEA NOT NULL,
8686
timestamp_col TIMESTAMP NOT NULL,
8787
)
8888
STORED AS AVRO
@@ -99,7 +99,7 @@ CREATE EXTERNAL TABLE alltypes_plain_zstandard (
9999
float_col FLOAT NOT NULL,
100100
double_col DOUBLE NOT NULL,
101101
date_string_col BYTEA NOT NULL,
102-
string_col VARCHAR NOT NULL,
102+
string_col BYTEA NOT NULL,
103103
timestamp_col TIMESTAMP NOT NULL,
104104
)
105105
STORED AS AVRO
@@ -260,7 +260,7 @@ physical_plan
260260

261261
# test column projection order from avro file
262262
query ITII
263-
SELECT id, string_col, int_col, bigint_col FROM alltypes_plain ORDER BY id LIMIT 5
263+
SELECT id, CAST(string_col AS varchar), int_col, bigint_col FROM alltypes_plain ORDER BY id LIMIT 5
264264
----
265265
0 0 0 0
266266
1 1 1 10

0 commit comments

Comments
 (0)