Skip to content

Commit f36b673

Browse files
committed
fix_test: columns are now prefixed in the plan
1 parent 1d21a98 commit f36b673

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

datafusion/tests/sql.rs

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4575,18 +4575,18 @@ async fn avro_query() {
45754575
let sql = "SELECT id, CAST(string_col AS varchar) FROM alltypes_plain";
45764576
let actual = execute_to_batches(&mut ctx, sql).await;
45774577
let expected = vec![
4578-
"+----+--------------------------+",
4579-
"| id | CAST(string_col AS Utf8) |",
4580-
"+----+--------------------------+",
4581-
"| 4 | 0 |",
4582-
"| 5 | 1 |",
4583-
"| 6 | 0 |",
4584-
"| 7 | 1 |",
4585-
"| 2 | 0 |",
4586-
"| 3 | 1 |",
4587-
"| 0 | 0 |",
4588-
"| 1 | 1 |",
4589-
"+----+--------------------------+",
4578+
"+----+-----------------------------------------+",
4579+
"| id | CAST(alltypes_plain.string_col AS Utf8) |",
4580+
"+----+-----------------------------------------+",
4581+
"| 4 | 0 |",
4582+
"| 5 | 1 |",
4583+
"| 6 | 0 |",
4584+
"| 7 | 1 |",
4585+
"| 2 | 0 |",
4586+
"| 3 | 1 |",
4587+
"| 0 | 0 |",
4588+
"| 1 | 1 |",
4589+
"+----+-----------------------------------------+",
45904590
];
45914591

45924592
assert_batches_eq!(expected, &actual);
@@ -4622,26 +4622,26 @@ async fn avro_query_multiple_files() {
46224622
let sql = "SELECT id, CAST(string_col AS varchar) FROM alltypes_plain";
46234623
let actual = execute_to_batches(&mut ctx, sql).await;
46244624
let expected = vec![
4625-
"+----+--------------------------+",
4626-
"| id | CAST(string_col AS Utf8) |",
4627-
"+----+--------------------------+",
4628-
"| 4 | 0 |",
4629-
"| 5 | 1 |",
4630-
"| 6 | 0 |",
4631-
"| 7 | 1 |",
4632-
"| 2 | 0 |",
4633-
"| 3 | 1 |",
4634-
"| 0 | 0 |",
4635-
"| 1 | 1 |",
4636-
"| 4 | 0 |",
4637-
"| 5 | 1 |",
4638-
"| 6 | 0 |",
4639-
"| 7 | 1 |",
4640-
"| 2 | 0 |",
4641-
"| 3 | 1 |",
4642-
"| 0 | 0 |",
4643-
"| 1 | 1 |",
4644-
"+----+--------------------------+",
4625+
"+----+-----------------------------------------+",
4626+
"| id | CAST(alltypes_plain.string_col AS Utf8) |",
4627+
"+----+-----------------------------------------+",
4628+
"| 4 | 0 |",
4629+
"| 5 | 1 |",
4630+
"| 6 | 0 |",
4631+
"| 7 | 1 |",
4632+
"| 2 | 0 |",
4633+
"| 3 | 1 |",
4634+
"| 0 | 0 |",
4635+
"| 1 | 1 |",
4636+
"| 4 | 0 |",
4637+
"| 5 | 1 |",
4638+
"| 6 | 0 |",
4639+
"| 7 | 1 |",
4640+
"| 2 | 0 |",
4641+
"| 3 | 1 |",
4642+
"| 0 | 0 |",
4643+
"| 1 | 1 |",
4644+
"+----+-----------------------------------------+",
46454645
];
46464646

46474647
assert_batches_eq!(expected, &actual);

0 commit comments

Comments
 (0)