Skip to content

Commit 21e0efb

Browse files
committed
Update another test
1 parent bbbde08 commit 21e0efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/sqllogictest/test_files/binary.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Bar Bar Bar Bar
313313
FooBar fooBar FooBar fooBar
314314

315315
# show helpful error msg when Binary type is used with string functions
316-
query error DataFusion error: Error during planning: Function 'split_part' requires TypeSignatureClass::Native\(LogicalType\(Native\(String\), String\)\), but received Binary \(DataType: Binary\)\.\n\nHint: Binary types are not automatically coerced to String\. Use CAST\(column AS VARCHAR\) to convert Binary data to String\.
316+
query error DataFusion error: Error during planning: Function 'split_part' requires String, but received Binary \(DataType: Binary\)\.\n\nHint: Binary types are not automatically coerced to String\. Use CAST\(column AS VARCHAR\) to convert Binary data to String\.
317317
SELECT split_part(binary, '~', 2) FROM t WHERE binary IS NOT NULL LIMIT 1;
318318

319319
# ensure the suggested CAST workaround works

0 commit comments

Comments
 (0)