Skip to content

Commit

Permalink
fix_test: columns are now prefixed in the plan
Browse files Browse the repository at this point in the history
  • Loading branch information
Igosuki committed Sep 12, 2021
1 parent 1d21a98 commit f36b673
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions datafusion/tests/sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4575,18 +4575,18 @@ async fn avro_query() {
let sql = "SELECT id, CAST(string_col AS varchar) FROM alltypes_plain";
let actual = execute_to_batches(&mut ctx, sql).await;
let expected = vec![
"+----+--------------------------+",
"| id | CAST(string_col AS Utf8) |",
"+----+--------------------------+",
"| 4 | 0 |",
"| 5 | 1 |",
"| 6 | 0 |",
"| 7 | 1 |",
"| 2 | 0 |",
"| 3 | 1 |",
"| 0 | 0 |",
"| 1 | 1 |",
"+----+--------------------------+",
"+----+-----------------------------------------+",
"| id | CAST(alltypes_plain.string_col AS Utf8) |",
"+----+-----------------------------------------+",
"| 4 | 0 |",
"| 5 | 1 |",
"| 6 | 0 |",
"| 7 | 1 |",
"| 2 | 0 |",
"| 3 | 1 |",
"| 0 | 0 |",
"| 1 | 1 |",
"+----+-----------------------------------------+",
];

assert_batches_eq!(expected, &actual);
Expand Down Expand Up @@ -4622,26 +4622,26 @@ async fn avro_query_multiple_files() {
let sql = "SELECT id, CAST(string_col AS varchar) FROM alltypes_plain";
let actual = execute_to_batches(&mut ctx, sql).await;
let expected = vec![
"+----+--------------------------+",
"| id | CAST(string_col AS Utf8) |",
"+----+--------------------------+",
"| 4 | 0 |",
"| 5 | 1 |",
"| 6 | 0 |",
"| 7 | 1 |",
"| 2 | 0 |",
"| 3 | 1 |",
"| 0 | 0 |",
"| 1 | 1 |",
"| 4 | 0 |",
"| 5 | 1 |",
"| 6 | 0 |",
"| 7 | 1 |",
"| 2 | 0 |",
"| 3 | 1 |",
"| 0 | 0 |",
"| 1 | 1 |",
"+----+--------------------------+",
"+----+-----------------------------------------+",
"| id | CAST(alltypes_plain.string_col AS Utf8) |",
"+----+-----------------------------------------+",
"| 4 | 0 |",
"| 5 | 1 |",
"| 6 | 0 |",
"| 7 | 1 |",
"| 2 | 0 |",
"| 3 | 1 |",
"| 0 | 0 |",
"| 1 | 1 |",
"| 4 | 0 |",
"| 5 | 1 |",
"| 6 | 0 |",
"| 7 | 1 |",
"| 2 | 0 |",
"| 3 | 1 |",
"| 0 | 0 |",
"| 1 | 1 |",
"+----+-----------------------------------------+",
];

assert_batches_eq!(expected, &actual);
Expand Down

0 comments on commit f36b673

Please sign in to comment.