Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/250#discussion_r11012174
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/joins.scala ---
@@ -15,23 +15,33 @@
* limitations under the License.
*/
-package org.apache.spark.sql.execution
+package org.apache.spark.sql
+package execution
-import scala.collection.mutable
+import scala.collection.mutable.{ArrayBuffer, BitSet}
import org.apache.spark.rdd.RDD
import org.apache.spark.SparkContext
-import org.apache.spark.sql.catalyst.errors._
-import org.apache.spark.sql.catalyst.expressions._
-import org.apache.spark.sql.catalyst.plans._
-import
org.apache.spark.sql.catalyst.plans.physical.{ClusteredDistribution,
Partitioning}
+import catalyst.errors._
+import catalyst.expressions._
+import catalyst.plans._
+import catalyst.plans.physical.{ClusteredDistribution, Partitioning}
-import org.apache.spark.rdd.PartitionLocalRDDFunctions._
+sealed abstract class BuildSide
+case object BuildLeft extends BuildSide
+case object BuildRight extends BuildSide
-case class SparkEquiInnerJoin(
+object InterpretCondition {
+ def apply(expression: Expression): (Row => Boolean) = {
+ (r: Row) => expression.apply(r).asInstanceOf[Boolean]
+ }
+}
+
+case class HashJoin(
--- End diff --
Seems to me this only handles inner join right? If yes, maybe reflect that
in the name. Technically we can do outer joins with hash join too ...
---
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.
---