From a515aaddf516cc202917eb57944369692304e6db Mon Sep 17 00:00:00 2001 From: jayzhan211 Date: Fri, 10 May 2024 19:47:45 +0800 Subject: [PATCH] rm err msg to fix ci Signed-off-by: jayzhan211 --- .../sqllogictest/test_files/arrow_typeof.slt | 6 --- .../sqllogictest/test_files/encoding.slt | 5 --- datafusion/sqllogictest/test_files/errors.slt | 31 ------------- datafusion/sqllogictest/test_files/expr.slt | 41 ------------------ datafusion/sqllogictest/test_files/math.slt | 10 ----- datafusion/sqllogictest/test_files/scalar.slt | 43 ------------------- datafusion/sqllogictest/test_files/struct.slt | 5 --- .../sqllogictest/test_files/timestamps.slt | 36 ---------------- 8 files changed, 177 deletions(-) diff --git a/datafusion/sqllogictest/test_files/arrow_typeof.slt b/datafusion/sqllogictest/test_files/arrow_typeof.slt index fe863834c65b..94cce61245e1 100644 --- a/datafusion/sqllogictest/test_files/arrow_typeof.slt +++ b/datafusion/sqllogictest/test_files/arrow_typeof.slt @@ -94,12 +94,6 @@ SELECT arrow_cast('1', 'Int16') # Basic error test query error SELECT arrow_cast('1') ----- -DataFusion error: Error during planning: Error during planning: The function expected 2 arguments but received 1 and No function matches the given name and argument types 'arrow_cast(Utf8)'. You might need to add explicit type casts. - Candidate functions: - arrow_cast(Any, Any) - - query error DataFusion error: Error during planning: arrow_cast requires its second argument to be a constant string, got Literal\(Int64\(43\)\) SELECT arrow_cast('1', 43) diff --git a/datafusion/sqllogictest/test_files/encoding.slt b/datafusion/sqllogictest/test_files/encoding.slt index abfdc972c8e5..626af88aa9b8 100644 --- a/datafusion/sqllogictest/test_files/encoding.slt +++ b/datafusion/sqllogictest/test_files/encoding.slt @@ -42,11 +42,6 @@ select decode(hex_field, 'non_encoding') from test; query error select to_hex(hex_field) from test; ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] Coercion from [Utf8] to the signature Uniform(1, [Int64]) failed. and No function matches the given name and argument types 'to_hex(Utf8)'. You might need to add explicit type casts. - Candidate functions: - to_hex(Int64) - # Arrays tests query T diff --git a/datafusion/sqllogictest/test_files/errors.slt b/datafusion/sqllogictest/test_files/errors.slt index a86828b233df..b5464e2a274c 100644 --- a/datafusion/sqllogictest/test_files/errors.slt +++ b/datafusion/sqllogictest/test_files/errors.slt @@ -40,11 +40,6 @@ LOCATION '../../testing/data/csv/aggregate_test_100.csv' # csv_query_error statement error SELECT sin(c1) FROM aggregate_test_100 ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] Coercion from [Utf8] to the signature Uniform(1, [Float64, Float32]) failed. and No function matches the given name and argument types 'sin(Utf8)'. You might need to add explicit type casts. - Candidate functions: - sin(Float64/Float32) - # cast_expressions_error statement error DataFusion error: Arrow error: Cast error: Cannot cast string 'c' to value of Int32 type @@ -87,48 +82,22 @@ SELECT COUNT(*) FROM way.too.many.namespaces.as.ident.prefixes.aggregate_test_10 # error message for wrong function signature (Variadic: arbitrary number of args all from some common types) statement error SELECT concat(); ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] signature Variadic([Utf8]) does not support zero arguments. and No function matches the given name and argument types 'concat()'. You might need to add explicit type casts. - Candidate functions: - concat(Utf8, ..) - # error message for wrong function signature (Uniform: t args all from some common types) statement error SELECT nullif(1); ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] Coercion from [Int64] to the signature Uniform(2, [Boolean, UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64, Float32, Float64, Utf8, LargeUtf8]) failed. and No function matches the given name and argument types 'nullif(Int64)'. You might need to add explicit type casts. - Candidate functions: - nullif(Boolean/UInt8/UInt16/UInt32/UInt64/Int8/Int16/Int32/Int64/Float32/Float64/Utf8/LargeUtf8, Boolean/UInt8/UInt16/UInt32/UInt64/Int8/Int16/Int32/Int64/Float32/Float64/Utf8/LargeUtf8) - # error message for wrong function signature (Exact: exact number of args of an exact type) statement error SELECT pi(3.14); ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] Coercion from [Float64] to the signature Exact([]) failed. and No function matches the given name and argument types 'pi(Float64)'. You might need to add explicit type casts. - Candidate functions: - pi() - # error message for wrong function signature (Any: fixed number of args of arbitrary types) statement error SELECT arrow_typeof(1, 1); ----- -DataFusion error: Error during planning: Error during planning: The function expected 1 arguments but received 2 and No function matches the given name and argument types 'arrow_typeof(Int64, Int64)'. You might need to add explicit type casts. - Candidate functions: - arrow_typeof(Any) - # error message for wrong function signature (OneOf: fixed number of args of arbitrary types) statement error SELECT power(1, 2, 3); ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] Coercion from [Int64, Int64, Int64] to the signature OneOf([Exact([Int64, Int64]), Exact([Float64, Float64])]) failed. and No function matches the given name and argument types 'power(Int64, Int64, Int64)'. You might need to add explicit type casts. - Candidate functions: - power(Int64, Int64) - power(Float64, Float64) - # # Wrong window/aggregate function signature diff --git a/datafusion/sqllogictest/test_files/expr.slt b/datafusion/sqllogictest/test_files/expr.slt index 853810dfab1e..129a67208354 100644 --- a/datafusion/sqllogictest/test_files/expr.slt +++ b/datafusion/sqllogictest/test_files/expr.slt @@ -1901,59 +1901,18 @@ a # regular expressions, which we have not implemented yet. query error SELECT substring('alphabet' FROM '3') ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] Coercion from [Utf8, Utf8] to the signature OneOf([Exact([Utf8, Int64]), Exact([LargeUtf8, Int64]), Exact([Utf8, Int64, Int64]), Exact([LargeUtf8, Int64, Int64])]) failed. and No function matches the given name and argument types 'substr(Utf8, Utf8)'. You might need to add explicit type casts. - Candidate functions: - substr(Utf8, Int64) - substr(LargeUtf8, Int64) - substr(Utf8, Int64, Int64) - substr(LargeUtf8, Int64, Int64) - query error SELECT substring('alphabet' FROM '3' FOR '2') ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] Coercion from [Utf8, Utf8, Utf8] to the signature OneOf([Exact([Utf8, Int64]), Exact([LargeUtf8, Int64]), Exact([Utf8, Int64, Int64]), Exact([LargeUtf8, Int64, Int64])]) failed. and No function matches the given name and argument types 'substr(Utf8, Utf8, Utf8)'. You might need to add explicit type casts. - Candidate functions: - substr(Utf8, Int64) - substr(LargeUtf8, Int64) - substr(Utf8, Int64, Int64) - substr(LargeUtf8, Int64, Int64) - query error SELECT substring('alphabet' FROM '3' FOR 2) ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] Coercion from [Utf8, Utf8, Int64] to the signature OneOf([Exact([Utf8, Int64]), Exact([LargeUtf8, Int64]), Exact([Utf8, Int64, Int64]), Exact([LargeUtf8, Int64, Int64])]) failed. and No function matches the given name and argument types 'substr(Utf8, Utf8, Int64)'. You might need to add explicit type casts. - Candidate functions: - substr(Utf8, Int64) - substr(LargeUtf8, Int64) - substr(Utf8, Int64, Int64) - substr(LargeUtf8, Int64, Int64) - query error SELECT substring('alphabet' FROM 3 FOR '2') ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] Coercion from [Utf8, Int64, Utf8] to the signature OneOf([Exact([Utf8, Int64]), Exact([LargeUtf8, Int64]), Exact([Utf8, Int64, Int64]), Exact([LargeUtf8, Int64, Int64])]) failed. and No function matches the given name and argument types 'substr(Utf8, Int64, Utf8)'. You might need to add explicit type casts. - Candidate functions: - substr(Utf8, Int64) - substr(LargeUtf8, Int64) - substr(Utf8, Int64, Int64) - substr(LargeUtf8, Int64, Int64) - query error SELECT substring('alphabet' FOR '2') ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] Coercion from [Utf8, Int64, Utf8] to the signature OneOf([Exact([Utf8, Int64]), Exact([LargeUtf8, Int64]), Exact([Utf8, Int64, Int64]), Exact([LargeUtf8, Int64, Int64])]) failed. and No function matches the given name and argument types 'substr(Utf8, Int64, Utf8)'. You might need to add explicit type casts. - Candidate functions: - substr(Utf8, Int64) - substr(LargeUtf8, Int64) - substr(Utf8, Int64, Int64) - substr(LargeUtf8, Int64, Int64) - - ##### csv_query_nullif_divide_by_0 diff --git a/datafusion/sqllogictest/test_files/math.slt b/datafusion/sqllogictest/test_files/math.slt index 5a14b9a58a99..3315ff454924 100644 --- a/datafusion/sqllogictest/test_files/math.slt +++ b/datafusion/sqllogictest/test_files/math.slt @@ -115,20 +115,10 @@ false true true NULL # abs: empty argumnet statement error SELECT abs(); ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] signature Any(1) does not support zero arguments. and No function matches the given name and argument types 'abs()'. You might need to add explicit type casts. - Candidate functions: - abs(Any) - # abs: wrong number of arguments statement error SELECT abs(1, 2); ----- -DataFusion error: Error during planning: Error during planning: The function expected 1 arguments but received 2 and No function matches the given name and argument types 'abs(Int64, Int64)'. You might need to add explicit type casts. - Candidate functions: - abs(Any) - # abs: unsupported argument type query error DataFusion error: This feature is not implemented: Unsupported data type Utf8 for function abs diff --git a/datafusion/sqllogictest/test_files/scalar.slt b/datafusion/sqllogictest/test_files/scalar.slt index 20d5d2808b9f..c52881b7b0ba 100644 --- a/datafusion/sqllogictest/test_files/scalar.slt +++ b/datafusion/sqllogictest/test_files/scalar.slt @@ -1801,75 +1801,32 @@ drop table test # error message for wrong function signature (Variadic: arbitrary number of args all from some common types) statement error SELECT concat(); ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] signature Variadic([Utf8]) does not support zero arguments. and No function matches the given name and argument types 'concat()'. You might need to add explicit type casts. - Candidate functions: - concat(Utf8, ..) - # error message for wrong function signature (Uniform: t args all from some common types) statement error SELECT nullif(1); ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] Coercion from [Int64] to the signature Uniform(2, [Boolean, UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64, Float32, Float64, Utf8, LargeUtf8]) failed. and No function matches the given name and argument types 'nullif(Int64)'. You might need to add explicit type casts. - Candidate functions: - nullif(Boolean/UInt8/UInt16/UInt32/UInt64/Int8/Int16/Int32/Int64/Float32/Float64/Utf8/LargeUtf8, Boolean/UInt8/UInt16/UInt32/UInt64/Int8/Int16/Int32/Int64/Float32/Float64/Utf8/LargeUtf8) - - # error message for wrong function signature (Exact: exact number of args of an exact type) statement error SELECT pi(3.14); ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] Coercion from [Float64] to the signature Exact([]) failed. and No function matches the given name and argument types 'pi(Float64)'. You might need to add explicit type casts. - Candidate functions: - pi() - # error message for wrong function signature (Any: fixed number of args of arbitrary types) statement error SELECT arrow_typeof(1, 1); ----- -DataFusion error: Error during planning: Error during planning: The function expected 1 arguments but received 2 and No function matches the given name and argument types 'arrow_typeof(Int64, Int64)'. You might need to add explicit type casts. - Candidate functions: - arrow_typeof(Any) - # error message for wrong function signature (OneOf: fixed number of args of arbitrary types) statement error SELECT power(1, 2, 3); ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] Coercion from [Int64, Int64, Int64] to the signature OneOf([Exact([Int64, Int64]), Exact([Float64, Float64])]) failed. and No function matches the given name and argument types 'power(Int64, Int64, Int64)'. You might need to add explicit type casts. - Candidate functions: - power(Int64, Int64) - power(Float64, Float64) - # The following functions need 1 argument statement error SELECT abs(); ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] signature Any(1) does not support zero arguments. and No function matches the given name and argument types 'abs()'. You might need to add explicit type casts. - Candidate functions: - abs(Any) - statement error SELECT acos(); ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] signature Uniform(1, [Float64, Float32]) does not support zero arguments. and No function matches the given name and argument types 'acos()'. You might need to add explicit type casts. - Candidate functions: - acos(Float64/Float32) - statement error SELECT isnan(); ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] signature OneOf([Exact([Float32]), Exact([Float64])]) does not support zero arguments. and No function matches the given name and argument types 'isnan()'. You might need to add explicit type casts. - Candidate functions: - isnan(Float32) - isnan(Float64) - # turn off enable_ident_normalization statement ok diff --git a/datafusion/sqllogictest/test_files/struct.slt b/datafusion/sqllogictest/test_files/struct.slt index 580f2f9039ba..46a08709c3a3 100644 --- a/datafusion/sqllogictest/test_files/struct.slt +++ b/datafusion/sqllogictest/test_files/struct.slt @@ -94,11 +94,6 @@ physical_plan # error on 0 arguments query error select named_struct(); ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] signature VariadicAny does not support zero arguments. and No function matches the given name and argument types 'named_struct()'. You might need to add explicit type casts. - Candidate functions: - named_struct(Any, .., Any) - # error on odd number of arguments #1 query error DataFusion error: Execution error: named_struct requires an even number of arguments, got 1 instead diff --git a/datafusion/sqllogictest/test_files/timestamps.slt b/datafusion/sqllogictest/test_files/timestamps.slt index c722f26913be..13fb8fba0d31 100644 --- a/datafusion/sqllogictest/test_files/timestamps.slt +++ b/datafusion/sqllogictest/test_files/timestamps.slt @@ -540,42 +540,6 @@ select to_timestamp_seconds(cast (1 as int)); # invalid second arg type query error SELECT DATE_BIN(INTERVAL '0 second', 25, TIMESTAMP '1970-01-01T00:00:00Z') ----- -DataFusion error: Error during planning: Error during planning: [data_types_with_scalar_udf] Coercion from [Interval(MonthDayNano), Int64, Timestamp(Nanosecond, None)] to the signature OneOf([Exact([Interval(MonthDayNano), Timestamp(Nanosecond, None), Timestamp(Nanosecond, None)]), Exact([Interval(MonthDayNano), Timestamp(Nanosecond, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))]), Exact([Interval(DayTime), Timestamp(Nanosecond, None), Timestamp(Nanosecond, None)]), Exact([Interval(DayTime), Timestamp(Nanosecond, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))]), Exact([Interval(MonthDayNano), Timestamp(Nanosecond, None)]), Exact([Interval(MonthDayNano), Timestamp(Nanosecond, Some("+TZ"))]), Exact([Interval(DayTime), Timestamp(Nanosecond, None)]), Exact([Interval(DayTime), Timestamp(Nanosecond, Some("+TZ"))]), Exact([Interval(MonthDayNano), Timestamp(Microsecond, None), Timestamp(Nanosecond, None)]), Exact([Interval(MonthDayNano), Timestamp(Microsecond, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))]), Exact([Interval(DayTime), Timestamp(Microsecond, None), Timestamp(Nanosecond, None)]), Exact([Interval(DayTime), Timestamp(Microsecond, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))]), Exact([Interval(MonthDayNano), Timestamp(Microsecond, None)]), Exact([Interval(MonthDayNano), Timestamp(Microsecond, Some("+TZ"))]), Exact([Interval(DayTime), Timestamp(Microsecond, None)]), Exact([Interval(DayTime), Timestamp(Microsecond, Some("+TZ"))]), Exact([Interval(MonthDayNano), Timestamp(Millisecond, None), Timestamp(Nanosecond, None)]), Exact([Interval(MonthDayNano), Timestamp(Millisecond, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))]), Exact([Interval(DayTime), Timestamp(Millisecond, None), Timestamp(Nanosecond, None)]), Exact([Interval(DayTime), Timestamp(Millisecond, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))]), Exact([Interval(MonthDayNano), Timestamp(Millisecond, None)]), Exact([Interval(MonthDayNano), Timestamp(Millisecond, Some("+TZ"))]), Exact([Interval(DayTime), Timestamp(Millisecond, None)]), Exact([Interval(DayTime), Timestamp(Millisecond, Some("+TZ"))]), Exact([Interval(MonthDayNano), Timestamp(Second, None), Timestamp(Nanosecond, None)]), Exact([Interval(MonthDayNano), Timestamp(Second, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))]), Exact([Interval(DayTime), Timestamp(Second, None), Timestamp(Nanosecond, None)]), Exact([Interval(DayTime), Timestamp(Second, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))]), Exact([Interval(MonthDayNano), Timestamp(Second, None)]), Exact([Interval(MonthDayNano), Timestamp(Second, Some("+TZ"))]), Exact([Interval(DayTime), Timestamp(Second, None)]), Exact([Interval(DayTime), Timestamp(Second, Some("+TZ"))])]) failed. and No function matches the given name and argument types 'date_bin(Interval(MonthDayNano), Int64, Timestamp(Nanosecond, None))'. You might need to add explicit type casts. - Candidate functions: - date_bin(Interval(MonthDayNano), Timestamp(Nanosecond, None), Timestamp(Nanosecond, None)) - date_bin(Interval(MonthDayNano), Timestamp(Nanosecond, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))) - date_bin(Interval(DayTime), Timestamp(Nanosecond, None), Timestamp(Nanosecond, None)) - date_bin(Interval(DayTime), Timestamp(Nanosecond, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))) - date_bin(Interval(MonthDayNano), Timestamp(Nanosecond, None)) - date_bin(Interval(MonthDayNano), Timestamp(Nanosecond, Some("+TZ"))) - date_bin(Interval(DayTime), Timestamp(Nanosecond, None)) - date_bin(Interval(DayTime), Timestamp(Nanosecond, Some("+TZ"))) - date_bin(Interval(MonthDayNano), Timestamp(Microsecond, None), Timestamp(Nanosecond, None)) - date_bin(Interval(MonthDayNano), Timestamp(Microsecond, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))) - date_bin(Interval(DayTime), Timestamp(Microsecond, None), Timestamp(Nanosecond, None)) - date_bin(Interval(DayTime), Timestamp(Microsecond, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))) - date_bin(Interval(MonthDayNano), Timestamp(Microsecond, None)) - date_bin(Interval(MonthDayNano), Timestamp(Microsecond, Some("+TZ"))) - date_bin(Interval(DayTime), Timestamp(Microsecond, None)) - date_bin(Interval(DayTime), Timestamp(Microsecond, Some("+TZ"))) - date_bin(Interval(MonthDayNano), Timestamp(Millisecond, None), Timestamp(Nanosecond, None)) - date_bin(Interval(MonthDayNano), Timestamp(Millisecond, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))) - date_bin(Interval(DayTime), Timestamp(Millisecond, None), Timestamp(Nanosecond, None)) - date_bin(Interval(DayTime), Timestamp(Millisecond, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))) - date_bin(Interval(MonthDayNano), Timestamp(Millisecond, None)) - date_bin(Interval(MonthDayNano), Timestamp(Millisecond, Some("+TZ"))) - date_bin(Interval(DayTime), Timestamp(Millisecond, None)) - date_bin(Interval(DayTime), Timestamp(Millisecond, Some("+TZ"))) - date_bin(Interval(MonthDayNano), Timestamp(Second, None), Timestamp(Nanosecond, None)) - date_bin(Interval(MonthDayNano), Timestamp(Second, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))) - date_bin(Interval(DayTime), Timestamp(Second, None), Timestamp(Nanosecond, None)) - date_bin(Interval(DayTime), Timestamp(Second, Some("+TZ")), Timestamp(Nanosecond, Some("+TZ"))) - date_bin(Interval(MonthDayNano), Timestamp(Second, None)) - date_bin(Interval(MonthDayNano), Timestamp(Second, Some("+TZ"))) - date_bin(Interval(DayTime), Timestamp(Second, None)) - date_bin(Interval(DayTime), Timestamp(Second, Some("+TZ"))) - # not support interval 0 statement error Execution error: DATE_BIN stride must be non-zero