Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/16606#discussion_r96569809
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala
---
@@ -1374,4 +1377,47 @@ class HiveDDLSuite
assert(e2.message.contains("Hive data source can only be used with
tables"))
}
}
+
+ test("table partition schema should be ordered") {
+ withTable("t", "t1") {
+ val path = Utils.createTempDir(namePrefix = "t")
+ val path1 = Utils.createTempDir(namePrefix = "t1")
+ try {
+ spark.sql(s"""
+ |create table t (id long, P1 int, P2 int)
+ |using parquet
+ |options (path "$path")
+ |partitioned by (P1, P2)""".stripMargin)
--- End diff --
this test can pass without your changes right? I think we can just keep the
below one.
---
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]