Skip to content

Commit 908f610

Browse files
committed
add test
Signed-off-by: jayzhan211 <[email protected]>
1 parent 7f8d5f3 commit 908f610

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

datafusion/sqllogictest/test_files/coalesce.slt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,14 @@ none_set
242242
statement ok
243243
drop table test1
244244

245+
# coalesce with utf8view
246+
query TTT
247+
select coalesce(arrow_cast(null, 'Utf8View'), arrow_cast('t', 'Utf8')),
248+
arrow_typeof(coalesce(arrow_cast(null, 'Utf8View'), arrow_cast('t', 'Utf8'))),
249+
arrow_typeof(coalesce(arrow_cast(null, 'Utf8'), arrow_cast('t', 'Utf8View')));
250+
----
251+
t Utf8View Utf8View
252+
245253
# test dict coercion with value
246254
statement ok
247255
create table t(c varchar) as values ('a'), (null);

0 commit comments

Comments
 (0)