You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2017/08/07 01:03:00 UTC
[jira] [Commented] (SPARK-21647) SortMergeJoin failed when using
CROSS
[ https://issues.apache.org/jira/browse/SPARK-21647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16115987#comment-16115987 ]
Xiao Li commented on SPARK-21647:
---------------------------------
https://github.com/apache/spark/pull/18863
> 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
>
> {noformat}
> val df = Seq((1, 1)).toDF("i", "j")
> df.createOrReplaceTempView("T")
> withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1") {
> 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)
> }
> {noformat}
> The above code could cause the following exception:
> {noformat}
> SortMergeJoinExec should not take Cross as the JoinType
> java.lang.IllegalArgumentException: SortMergeJoinExec should not take Cross as the JoinType
> at org.apache.spark.sql.execution.joins.SortMergeJoinExec.outputOrdering(SortMergeJoinExec.scala:100)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org