Skip to content

Commit

Permalink
Fixed some minor issues introduced during rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed Mar 22, 2014
1 parent 0dbf2fb commit af1ad5e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import catalyst.rules.Rule
import catalyst.errors._
import catalyst.expressions._
import catalyst.plans.physical._
import execution.SparkSqlSerializer

case class Exchange(newPartitioning: Partitioning, child: SparkPlan) extends UnaryNode {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import TestSQLContext._
class QueryTest extends FunSuite {
/**
* Runs the plan and makes sure the answer matches the expected result.
* @param plan the query to be executed
* @param rdd the [[SchemaRDD]] to be executed
* @param expectedAnswer the expected result, can either be an Any, Seq[Product], or Seq[ Seq[Any] ].
*/
protected def checkAnswer(rdd: SchemaRDD, expectedAnswer: Any): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@

package org.apache.spark.sql.columnar

import org.apache.spark.sql.{TestData, TestSQLContext, DslQueryTest}
import org.apache.spark.sql.execution.SparkLogicalPlan
import org.apache.spark.sql.test.TestSQLContext
import org.apache.spark.sql.{TestData, DslQuerySuite}

class ColumnarQuerySuite extends DslQueryTest {
class ColumnarQuerySuite extends DslQuerySuite {
import TestData._
import TestSQLContext._

test("simple columnar query") {
val plan = TestSQLContext.executePlan(testData).executedPlan
val plan = TestSQLContext.executePlan(testData.logicalPlan).executedPlan
val scan = SparkLogicalPlan(InMemoryColumnarTableScan(plan.output, plan))

checkAnswer(scan, testData.data)
checkAnswer(scan, testData.collect().toSeq)
}
}

0 comments on commit af1ad5e

Please sign in to comment.