Apache DataFusion SQL Query Engine
fix misplaced statements in sqllogictest (#7586)
Jonah Gaod68c0fcb491d
diff --git a/datafusion/sqllogictest/test_files/encoding.slt b/datafusion/sqllogictest/test_files/encoding.sltindex 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, hexselect 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 testsdiff --git a/datafusion/sqllogictest/test_files/errors.slt b/datafusion/sqllogictest/test_files/errors.sltindex 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 'cSELECT 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_incorrectdiff --git a/datafusion/sqllogictest/test_files/set_variable.slt b/datafusion/sqllogictest/test_files/set_variable.sltindex 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 falsestatement okset 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 boolSET 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 boolSET datafusion.execution.coalesce_batches to abc# set u64 variable@@ -136,19 +132,13 @@ datafusion.execution.batch_size 2statement okset 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 usizeSET 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 usizeSET 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 stringSET datafusion.execution.batch_size to 0.1# set time zone