Skip to content

Commit

Permalink
rm err msg to fix ci
Browse files Browse the repository at this point in the history
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
  • Loading branch information
jayzhan211 committed May 10, 2024
1 parent 5cc047b commit a515aad
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 177 deletions.
6 changes: 0 additions & 6 deletions datafusion/sqllogictest/test_files/arrow_typeof.slt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 0 additions & 5 deletions datafusion/sqllogictest/test_files/encoding.slt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 0 additions & 31 deletions datafusion/sqllogictest/test_files/errors.slt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
41 changes: 0 additions & 41 deletions datafusion/sqllogictest/test_files/expr.slt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 0 additions & 10 deletions datafusion/sqllogictest/test_files/math.slt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
43 changes: 0 additions & 43 deletions datafusion/sqllogictest/test_files/scalar.slt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions datafusion/sqllogictest/test_files/struct.slt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 0 additions & 36 deletions datafusion/sqllogictest/test_files/timestamps.slt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a515aad

Please sign in to comment.