Description
In spark shell :
CREATE TABLE test (col INT) ; INSERT OVERWRITE TABLE test VALUES (1), (2) ; SELECT COUNT(1) FROM test T1 CROSS JOIN test T2 JOIN test T3 ON T3.col = T1.col JOIN test T4 ON T4.col = T1.col ;
returns :
Error in query: cannot resolve '`T1.col`' given input columns: [col, col]; line 6 pos 12
Apparently, this example is minimal (removing the CROSS or one of the JOIN causes no issue).
Attachments
Issue Links
- duplicates
-
SPARK-17384 SQL - Running query with outer join from 1.6 fails
- Closed
- is duplicated by
-
SPARK-17253 Left join where ON clause does not reference the right table produces analysis error
- Resolved
-
SPARK-17384 SQL - Running query with outer join from 1.6 fails
- Closed
- links to