Github user jeanlyn commented on a diff in the pull request:
https://github.com/apache/spark/pull/8404#discussion_r37867722
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/QueryPartitionSuite.scala ---
@@ -18,50 +18,54 @@
package org.apache.spark.sql.hive
import com.google.common.io.Files
+import org.apache.spark.sql.test.SQLTestUtils
import org.apache.spark.sql.{QueryTest, _}
import org.apache.spark.util.Utils
-class QueryPartitionSuite extends QueryTest {
+class QueryPartitionSuite extends QueryTest with SQLTestUtils {
private lazy val ctx = org.apache.spark.sql.hive.test.TestHive
import ctx.implicits._
- import ctx.sql
+
+ protected def _sqlContext = ctx
test("SPARK-5068: query data when path doesn't exist"){
- val testData = ctx.sparkContext.parallelize(
- (1 to 10).map(i => TestData(i, i.toString))).toDF()
- testData.registerTempTable("testData")
+ withSQLConf((SQLConf.HIVE_VERIFY_PARTITION_PATH.key, "false")) {
--- End diff --
Should be set to `true`?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]