You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f478cdc
Browse filesBrowse the repository at this point in the historyBrowse files
Cherry-pick of apache#21032. Adapted for 52.5.0:
- Two unused imports in datafusion-expr's test module (`IntervalUnit`,
`logical_int64`) compile-fail under -D warnings; dropped.
- Two sql-integration tests and several sqllogictest expected-error
patterns assumed the friendlier Display impl from apache#20605
was already on 52.5.0 (it isn't); updated those patterns to the
pre-apache#20605 verbose `TypeSignatureClass::Native(LogicalType(...))` shape
and to the post-apache#21032 `failed with: ...` (no quoted inner message)
shape.
- Also includes the author's own follow-up CI fix (was a separate commit
upstream, folded here).
Signed-off-by: yaommen <[email protected]>
"Error during planning: Execution error: Function 'sum' user-defined coercion failed with\"Execution error: sum function requires 1 argument, got 0\"",
4722
+
"Error during planning: Execution error: Function 'sum' user-defined coercion failed with: Execution error: sum function requires 1 argument, got 0",
4723
4723
);
4724
4724
// We keep two different prefixes because they clarify each other.
4725
4725
// It might be incorrect, and we should consider keeping only one.
"Error during planning: Execution error: Function 'sum' user-defined coercion failed with\"Execution error: sum function requires 1 argument, got 0\"",
4744
+
"Error during planning: Execution error: Function 'sum' user-defined coercion failed with: Execution error: sum function requires 1 argument, got 0",
Copy file name to clipboardExpand all lines: datafusion/sqllogictest/test_files/array.slt
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -3361,7 +3361,7 @@ select
3361
3361
[1, 2, 3] List(Utf8View)
3362
3362
3363
3363
# array_concat error
3364
-
query error DataFusion error: Error during planning: Execution error: Function 'array_concat' user-defined coercion failed with "Error during planning: array_concat does not support type Int64"
3364
+
query error DataFusion error: Error during planning: Execution error: Function 'array_concat' user-defined coercion failed with: Error during planning: array_concat does not support type Int64
Copy file name to clipboardExpand all lines: datafusion/sqllogictest/test_files/arrow_typeof.slt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ SELECT arrow_cast('1', 'Int16')
95
95
query error
96
96
SELECT arrow_cast('1')
97
97
98
-
query error Expect TypeSignatureClass::Native\(LogicalType\(Native\(String\), String\)\) but received NativeType::Int64, DataType: Int64
98
+
query error Function 'arrow_cast' requires TypeSignatureClass::Native\(LogicalType\(Native\(String\), String\)\), but received Int64 \(DataType: Int64\)
99
99
SELECT arrow_cast('1', 43)
100
100
101
101
query error DataFusion error: Execution error: arrow_cast requires its second argument to be a non\-empty constant string
Copy file name to clipboardExpand all lines: datafusion/sqllogictest/test_files/datetime/timestamps.slt
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3009,7 +3009,7 @@ NULL
3009
3009
query error DataFusion error: Error during planning: Function 'make_date' expects 3 arguments but received 1
3010
3010
select make_date(1);
3011
3011
3012
-
query error Expect TypeSignatureClass::Native\(LogicalType\(Native\(Int32\), Int32\)\) but received NativeType::Interval\(MonthDayNano\), DataType: Interval\(MonthDayNano\)
3012
+
query error Function 'make_date' requires TypeSignatureClass::Native\(LogicalType\(Native\(Int32\), Int32\)\), but received Interval\(MonthDayNano\) \(DataType: Interval\(MonthDayNano\)\)
query error Cannot cast string '' to value of Int32 type
3283
3283
select make_time(22, 1, '');
3284
3284
3285
-
query error Expect TypeSignatureClass::Native\(LogicalType\(Native\(Int32\), Int32\)\) but received NativeType::Float64, DataType: Float64
3285
+
query error Function 'make_time' requires TypeSignatureClass::Native\(LogicalType\(Native\(Int32\), Int32\)\), but received Float64 \(DataType: Float64\)
statement error DataFusion error: Error during planning: Internal error: Expect TypeSignatureClass::Timestamp but received NativeType::String, DataType: Utf8
3900
+
statement error DataFusion error: Error during planning: Function 'to_local_time' requires TypeSignatureClass::Timestamp, but received String \(DataType: Utf8\)
Copy file name to clipboardExpand all lines: datafusion/sqllogictest/test_files/encoding.slt
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -55,10 +55,10 @@ CREATE TABLE test(
55
55
;
56
56
57
57
# errors
58
-
query error DataFusion error: Error during planning: Internal error: Expect TypeSignatureClass::Binary but received NativeType::Int64, DataType: Int64
58
+
query error DataFusion error: Error during planning: Function 'encode' requires TypeSignatureClass::Binary, but received Int64 \(DataType: Int64\)
59
59
select encode(12, 'hex');
60
60
61
-
query error DataFusion error: Error during planning: Internal error: Expect TypeSignatureClass::Binary but received NativeType::Int64, DataType: Int64
61
+
query error DataFusion error: Error during planning: Function 'decode' requires TypeSignatureClass::Binary, but received Int64 \(DataType: Int64\)
62
62
select decode(12, 'hex');
63
63
64
64
query error DataFusion error: Error during planning: There is no built\-in encoding named 'non_encoding', currently supported encodings are: base64, hex
@@ -73,7 +73,7 @@ select decode('', null) from test;
73
73
query error DataFusion error: This feature is not implemented: Encoding must be a scalar; array specified encoding is not yet supported
74
74
select decode('', hex_field) from test;
75
75
76
-
query error DataFusion error: Error during planning: Internal error: Expect TypeSignatureClass::Integer but received NativeType::String, DataType: Utf8View
76
+
query error DataFusion error: Error during planning: Function 'to_hex' requires TypeSignatureClass::Integer, but received String \(DataType: Utf8View\)
77
77
select to_hex(hex_field) from test;
78
78
79
79
query error DataFusion error: Execution error: Failed to decode value using base64
0 commit comments