Skip to content

Commit

Permalink
Got rid of IntelliJ problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Jan 27, 2015
1 parent 02bbfbc commit 2b22684
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package org.apache.spark.sql.sources
import org.apache.spark.rdd.RDD
import org.apache.spark.sql.{Row, Strategy}
import org.apache.spark.sql.catalyst.expressions
import org.apache.spark.sql.catalyst.expressions._
import org.apache.spark.sql.catalyst.expressions.{And, Attribute, AttributeReference, AttributeSet, Expression, NamedExpression}
import org.apache.spark.sql.catalyst.planning.PhysicalOperation
import org.apache.spark.sql.catalyst.plans.logical.LogicalPlan
import org.apache.spark.sql.execution
Expand Down Expand Up @@ -111,6 +111,7 @@ private[sql] object DataSourceStrategy extends Strategy {
}
}

/** Turn Catalyst [[Expression]]s into data source [[Filter]]s. */
protected[sql] def selectFilters(filters: Seq[Expression]): Seq[Filter] = filters.collect {
case expressions.EqualTo(a: Attribute, expressions.Literal(v, _)) => EqualTo(a.name, v)
case expressions.EqualTo(expressions.Literal(v, _), a: Attribute) => EqualTo(a.name, v)
Expand Down

0 comments on commit 2b22684

Please sign in to comment.