Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/5412#discussion_r27958632
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/InsertIntoHiveTableSuite.scala
---
@@ -115,11 +115,36 @@ class InsertIntoHiveTableSuite extends QueryTest with
BeforeAndAfter {
test("SPARK-4203:random partition directory order") {
sql("CREATE TABLE tmp_table (key int, value string)")
val tmpDir = Utils.createTempDir()
- sql(s"CREATE TABLE table_with_partition(c1 string) PARTITIONED by (p1
string,p2 string,p3 string,p4 string,p5 string) location
'${tmpDir.toURI.toString}' ")
- sql("INSERT OVERWRITE TABLE table_with_partition partition
(p1='a',p2='b',p3='c',p4='c',p5='1') SELECT 'blarr' FROM tmp_table")
- sql("INSERT OVERWRITE TABLE table_with_partition partition
(p1='a',p2='b',p3='c',p4='c',p5='2') SELECT 'blarr' FROM tmp_table")
- sql("INSERT OVERWRITE TABLE table_with_partition partition
(p1='a',p2='b',p3='c',p4='c',p5='3') SELECT 'blarr' FROM tmp_table")
- sql("INSERT OVERWRITE TABLE table_with_partition partition
(p1='a',p2='b',p3='c',p4='c',p5='4') SELECT 'blarr' FROM tmp_table")
+ sql(
+ s"""
+ |CREATE TABLE table_with_partition(c1 string)
+ |PARTITIONED by (p1 string,p2 string,p3 string,p4 string,p5
string)
+ |location '${tmpDir.toURI.toString}'
+ """.stripMargin)
--- End diff --
One less space.
---
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]