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
+
query ?
499
+
select * from t;
500
+
----
501
+
{c: 1.0, r: a}
502
+
{c: 2.3, r: b}
503
+
504
+
statement ok
505
+
drop table t;
506
+
498
507
##################################
499
508
## Test Coalesce with Struct
500
509
##################################
@@ -560,10 +569,18 @@ create table t(a struct(r varchar, c int), b struct(r varchar, c float)) as valu
560
569
(row('purple', 1), row('green', 2.3));
561
570
562
571
# 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
572
+
statement ok
565
573
create table t(a struct(r varchar, c int)) as values ({r: 'a', c: 1}), ({c: 2, r: 'b'});
0 commit comments