Github user dongjoon-hyun commented on the issue:
https://github.com/apache/spark/pull/18460
I think It's not.
```scala
scala> sql("SELECT '1.1' union all (select 1.1)").explain(true)
...
== Analyzed Logical Plan ==
1.1: string
Union
:- Project [1.1#31]
: +- Project [1.1 AS 1.1#31]
: +- OneRowRelation$
+- Project [cast(1.1#32 as string) AS 1.1#33]
+- Project [1.1 AS 1.1#32]
+- OneRowRelation$
scala> sql("SELECT named_struct('a',1) union all (select
named_struct('A',2))").explain(true)
...
== Analyzed Logical Plan ==
named_struct(a, 1): struct<a:int>
Union
:- Project [named_struct(a, 1) AS named_struct(a, 1)#39]
: +- OneRowRelation$
+- Project [named_struct(A, 2) AS named_struct(A, 2)#40]
+- OneRowRelation$
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]