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
query error DataFusion error: Optimizer rule 'simplify_expressions' failed[\s\S]*Arrow error: Cast error: Cannot cast string 'a' to value of Float64 type
495
+
statement ok
496
496
create table t as values({r: 'a', c: 1}), ({c: 2.3, r: 'b'});
497
497
498
+
statement ok
499
+
drop table t;
500
+
498
501
##################################
499
502
## Test Coalesce with Struct
500
503
##################################
@@ -560,10 +563,12 @@ create table t(a struct(r varchar, c int), b struct(r varchar, c float)) as valu
560
563
(row('purple', 1), row('green', 2.3));
561
564
562
565
# out of order struct literal
563
-
# TODO: This query should not fail
564
-
statement error DataFusion error: Optimizer rule 'simplify_expressions' failed[\s\S]*Arrow error: Cast error: Cannot cast string 'b' to value of Int32 type
566
+
statement ok
565
567
create table t(a struct(r varchar, c int)) as values ({r: 'a', c: 1}), ({c: 2, r: 'b'});
0 commit comments