Skip to content
Snippets Groups Projects
Commit c4021401 authored by Cheng Lian's avatar Cheng Lian
Browse files

[SQL] [Minor] HiveParquetSuite was disabled by mistake, re-enable them

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/apache/spark/4440)
<!-- Reviewable:end -->

Author: Cheng Lian <lian@databricks.com>

Closes #4440 from liancheng/parquet-oops and squashes the following commits:

f21ede4 [Cheng Lian] HiveParquetSuite was disabled by mistake, re-enable them.
parent 76c4bf59
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,6 @@ class ParquetQuerySuite extends QueryTest with ParquetTest {
}
}
// TODO Re-enable this after data source insertion API is merged
test(s"$prefix: appending") {
val data = (0 until 10).map(i => (i, i.toString))
withParquetTable(data, "t") {
......
......@@ -17,7 +17,7 @@
package org.apache.spark.sql.parquet
import org.apache.spark.sql.QueryTest
import org.apache.spark.sql.{SQLConf, QueryTest}
import org.apache.spark.sql.catalyst.expressions.Row
import org.apache.spark.sql.hive.test.TestHive
......@@ -64,8 +64,7 @@ class HiveParquetSuite extends QueryTest with ParquetTest {
}
}
// TODO Re-enable this after data source insertion API is merged
ignore(s"$prefix: INSERT OVERWRITE TABLE Parquet table") {
test(s"$prefix: INSERT OVERWRITE TABLE Parquet table") {
withParquetTable((1 to 10).map(i => (i, s"val_$i")), "t") {
withTempPath { file =>
sql("SELECT * FROM t LIMIT 1").saveAsParquetFile(file.getCanonicalPath)
......@@ -81,4 +80,12 @@ class HiveParquetSuite extends QueryTest with ParquetTest {
}
}
}
withSQLConf(SQLConf.PARQUET_USE_DATA_SOURCE_API -> "true") {
run("Parquet data source enabled")
}
withSQLConf(SQLConf.PARQUET_USE_DATA_SOURCE_API -> "false") {
run("Parquet data source disabled")
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment