This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new d68c0fcb49 fix misplaced statements in sqllogictest (#7586)
d68c0fcb49 is described below

commit d68c0fcb491d4d0a2159ff433b59fa77f78edca4
Author: Jonah Gao <[email protected]>
AuthorDate: Mon Sep 18 21:32:08 2023 +0800

    fix misplaced statements in sqllogictest (#7586)
---
 datafusion/sqllogictest/test_files/encoding.slt     |  4 +---
 datafusion/sqllogictest/test_files/errors.slt       |  4 +---
 datafusion/sqllogictest/test_files/set_variable.slt | 20 +++++---------------
 3 files changed, 7 insertions(+), 21 deletions(-)

diff --git a/datafusion/sqllogictest/test_files/encoding.slt 
b/datafusion/sqllogictest/test_files/encoding.slt
index dcbf238b5f..9f4f508e23 100644
--- a/datafusion/sqllogictest/test_files/encoding.slt
+++ b/datafusion/sqllogictest/test_files/encoding.slt
@@ -40,9 +40,7 @@ select decode(12, 'hex')
 query error DataFusion error: Error during planning: There is no built\-in 
encoding named 'non_encoding', currently supported encodings are: base64, hex
 select decode(hex_field, 'non_encoding') from test;
 
-query error DataFusion error: SQL error: ParserError\("Expected an SQL 
statement, found: Candidate"\)
-       Candidate functions:
-       to_hex\(Int64\)
+query error DataFusion error: Error during planning: No function matches the 
given name and argument types 'to_hex\(Utf8\)'. You might need to add explicit 
type casts.\n\tCandidate functions:\n\tto_hex\(Int64\)
 select to_hex(hex_field) from test;
 
 # Arrays tests
diff --git a/datafusion/sqllogictest/test_files/errors.slt 
b/datafusion/sqllogictest/test_files/errors.slt
index bdbf525abe..1380ac2f2b 100644
--- a/datafusion/sqllogictest/test_files/errors.slt
+++ b/datafusion/sqllogictest/test_files/errors.slt
@@ -46,9 +46,7 @@ statement error DataFusion error: Arrow error: Cast error: 
Cannot cast string 'c
 SELECT CAST(c1 AS INT) FROM aggregate_test_100
 
 # aggregation_with_bad_arguments
-statement error DataFusion error: SQL error: ParserError\("Expected an SQL 
statement, found: Candidate"\)
-       Candidate functions:
-       COUNT\(Any, \.\., Any\)
+statement error DataFusion error: Error during planning: No function matches 
the given name and argument types 'COUNT\(\)'. You might need to add explicit 
type casts.\n\tCandidate functions:\n\tCOUNT\(Any, .., Any\)
 SELECT COUNT(DISTINCT) FROM aggregate_test_100
 
 # query_cte_incorrect
diff --git a/datafusion/sqllogictest/test_files/set_variable.slt 
b/datafusion/sqllogictest/test_files/set_variable.slt
index 04e3715fd3..440fb2c6ef 100644
--- a/datafusion/sqllogictest/test_files/set_variable.slt
+++ b/datafusion/sqllogictest/test_files/set_variable.slt
@@ -93,14 +93,10 @@ datafusion.execution.coalesce_batches false
 statement ok
 set datafusion.catalog.information_schema = true
 
-statement error DataFusion error: SQL error: ParserError\("Expected an SQL 
statement, found: caused"\)
-caused by
-External error: provided string was not `true` or `false`
+statement error DataFusion error: Error parsing 1 as bool
 SET datafusion.execution.coalesce_batches to 1
 
-statement error DataFusion error: SQL error: ParserError\("Expected an SQL 
statement, found: caused"\)
-caused by
-External error: provided string was not `true` or `false`
+statement error DataFusion error: Error parsing abc as bool
 SET datafusion.execution.coalesce_batches to abc
 
 # set u64 variable
@@ -136,19 +132,13 @@ datafusion.execution.batch_size 2
 statement ok
 set datafusion.catalog.information_schema = true
 
-statement error DataFusion error: SQL error: ParserError\("Expected an SQL 
statement, found: caused"\)
-caused by
-External error: invalid digit found in string
+statement error DataFusion error: Error parsing -1 as usize
 SET datafusion.execution.batch_size to -1
 
-statement error DataFusion error: SQL error: ParserError\("Expected an SQL 
statement, found: caused"\)
-caused by
-External error: invalid digit found in string
+statement error DataFusion error: Error parsing abc as usize
 SET datafusion.execution.batch_size to abc
 
-statement error DataFusion error: SQL error: ParserError\("Expected an SQL 
statement, found: caused"\)
-caused by
-External error: invalid digit found in string
+statement error External error: invalid digit found in string
 SET datafusion.execution.batch_size to 0.1
 
 # set time zone

Reply via email to