Xiao Li created SPARK-21647:

             Summary: SortMergeJoin failed when using CROSS
                 Key: SPARK-21647
                 URL: https://issues.apache.org/jira/browse/SPARK-21647
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.2.0
            Reporter: Xiao Li

val df = Seq((1, 1)).toDF("i", "j")
  sql("select * from (select a.i from T a cross join T t where t.i = a.i) as t1 
" +
    "cross join T t2 where t2.i = t1.i").explain(true)
The above code could cause the following exception:
SortMergeJoinExec should not take Cross as the JoinType
java.lang.IllegalArgumentException: SortMergeJoinExec should not take Cross as 
the JoinType

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to