Skip to content

Commit

Permalink
Add a test to make sure conversion is actually happening
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed Aug 7, 2014
1 parent 212d5cd commit 1161338
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package org.apache.spark.sql.parquet

import java.io.File

import org.apache.spark.sql.hive.execution.HiveTableScan
import org.scalatest.BeforeAndAfterAll

import scala.reflect.ClassTag
Expand Down Expand Up @@ -123,4 +124,15 @@ class ParquetMetastoreSuite extends QueryTest with BeforeAndAfterAll {
10
)
}

test("conversion is working") {
assert(
sql("SELECT * FROM normal_parquet").queryExecution.executedPlan.collect {
case _: HiveTableScan => true
}.isEmpty)
assert(
sql("SELECT * FROM normal_parquet").queryExecution.executedPlan.collect {
case _: ParquetTableScan => true
}.nonEmpty)
}
}

0 comments on commit 1161338

Please sign in to comment.