Issue from running Cartesian Join Query
What is Cartesian Join query?
org.apache.spark.sql.AnalysisException:
Detected implicit cartesian product for INNER
join between logical plans
Project [VisitorId#14]
+- LogicalRDD [products#13, visitorId#14], false
and
Project [id#21, if (isnotnull(name#6)) name#6 else invalid product AS name#25, interest#22]
+- Join FullOuter, (id#21 = id#5)
:- Project [products#19.id AS id#21, products#19.interest AS interest#22]
: +- Generate explode(products#13), [0], false, [products#19]
: +- Project [products#13]
: +- LogicalRDD [products#13, visitorId#14], false
+- LocalRelation [id#5, name#6]
Join condition is missing or trivial.
Either: use the CROSS JOIN syntax to allow cartesian products between these
relations, or: enable implicit cartesian products by setting the configuration
variable spark.sql.crossJoin.enabled=true;Set the default in Spark configuration to be effective to all
Last updated