From f36b6739732f18403128f3014846af6b16149f9d Mon Sep 17 00:00:00 2001 From: Guillaume Balaine Date: Sun, 12 Sep 2021 12:17:57 +0200 Subject: [PATCH] fix_test: columns are now prefixed in the plan --- datafusion/tests/sql.rs | 64 ++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/datafusion/tests/sql.rs b/datafusion/tests/sql.rs index f02d6cdb694b5..e5a4331cc2360 100644 --- a/datafusion/tests/sql.rs +++ b/datafusion/tests/sql.rs @@ -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); @@ -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);