Github user zsxwing commented on a diff in the pull request:
https://github.com/apache/spark/pull/7417#discussion_r38608917
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/joins/CartesianProduct.scala
---
@@ -27,16 +27,27 @@ import org.apache.spark.sql.execution.{BinaryNode,
SparkPlan}
* :: DeveloperApi ::
*/
@DeveloperApi
-case class CartesianProduct(left: SparkPlan, right: SparkPlan) extends
BinaryNode {
+case class CartesianProduct(
+ left: SparkPlan,
+ right: SparkPlan,
+ buildSide: BuildSide) extends BinaryNode {
override def output: Seq[Attribute] = left.output ++ right.output
+ private val (small, big) = buildSide match {
+ case BuildRight => (left, right)
--- End diff --
In other places, `BuildRight` means the right side is a small table, such
as `org.apache.spark.sql.execution.joins.HashJoin`, and we usually broadcast
it. Could you follow this semantics?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]