Skip to content

Commit

Permalink
Fixes compilation errors introduced while rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed May 12, 2015
1 parent ea6c8dd commit 9b487bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import org.apache.spark.sql.catalyst.analysis.{ResolvedStar, UnresolvedAttribute
import org.apache.spark.sql.catalyst.expressions._
import org.apache.spark.sql.catalyst.plans.logical.{Filter, _}
import org.apache.spark.sql.catalyst.plans.{Inner, JoinType}
import org.apache.spark.sql.catalyst.{CatalystTypeConverters, ScalaReflection, SqlParser}
import org.apache.spark.sql.catalyst.{expressions, CatalystTypeConverters, ScalaReflection, SqlParser}
import org.apache.spark.sql.execution.{EvaluatePython, ExplainCommand, LogicalRDD}
import org.apache.spark.sql.jdbc.JDBCWriteDetails
import org.apache.spark.sql.json.JacksonGenerator
Expand Down Expand Up @@ -400,7 +400,9 @@ class DataFrame private[sql](
joined.left,
joined.right,
joinType = Inner,
Some(EqualTo(joined.left.resolve(usingColumn), joined.right.resolve(usingColumn))))
Some(expressions.EqualTo(
joined.left.resolve(usingColumn),
joined.right.resolve(usingColumn))))
)
}

Expand Down Expand Up @@ -1343,7 +1345,7 @@ class DataFrame private[sql](
mode: SaveMode,
options: java.util.Map[String, String],
partitionColumns: java.util.List[String]): Unit = {
???
saveAsTable(tableName, source, mode, options.toMap, partitionColumns)
}

/**
Expand Down Expand Up @@ -1399,7 +1401,15 @@ class DataFrame private[sql](
mode: SaveMode,
options: Map[String, String],
partitionColumns: Seq[String]): Unit = {
???
sqlContext.executePlan(
CreateTableUsingAsSelect(
tableName,
source,
temporary = false,
partitionColumns.toArray,
mode,
options,
logicalPlan)).toRdd
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private[sql] object DataSourceStrategy extends Strategy {
.reduceOption(expressions.And)
.getOrElse(Literal(true))

val boundPredicate = InterpretedPredicate(predicate.transform {
val boundPredicate = InterpretedPredicate.create(predicate.transform {
case a: AttributeReference =>
val index = partitionColumns.indexWhere(a.name == _.name)
BoundReference(index, partitionColumns(index).dataType, nullable = true)
Expand Down

0 comments on commit 9b487bf

Please sign in to comment.