mcdull_zhang created SPARK-41361:
------------------------------------
Summary: Invalid call toAttribute on unresolved object exception
caused by WidenSetOperationTypes
Key: SPARK-41361
URL: https://issues.apache.org/jira/browse/SPARK-41361
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 3.2.0
Reporter: mcdull_zhang
The problem can be reproduced in the following way:
{code:java}
spark-sql> CREATE OR REPLACE TEMPORARY VIEW t1 AS VALUES (1, 'a'), (2, 'b')
tbl(c1, c2);
spark-sql> CREATE OR REPLACE TEMPORARY VIEW t2 AS VALUES (1.0, 1), (2.0, 4)
tbl(c1, c2);
spark-sql> SELECT
> TRANSFORM(*) USING 'cat' AS (a)
> FROM
> (
> SELECT c2 AS c from t2
> UNION
> SELECT c2 AS c from t1);
Invalid call to toAttribute on unresolved object{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]