dongjoon-hyun commented on a change in pull request #34489:
URL: https://github.com/apache/spark/pull/34489#discussion_r747811433
##########
File path:
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveParquetSuite.scala
##########
@@ -168,4 +170,23 @@ class HiveParquetSuite extends QueryTest with ParquetTest
with TestHiveSingleton
}
}
}
+
+ test("SPARK-37210: Concurrent write to different static partitions") {
+ withTable("t") {
+ sql("CREATE TABLE t (c1 int, c2 int) PARTITIONED BY (c3 int, c4 int)
STORED AS PARQUET")
+ val selectStatement = "SELECT 1 AS c1, 2 AS c2"
+ val tasks: Seq[Callable[Unit]] = (1 to 4).map(i => {
+ new Callable[Unit] {
+ override def call(): Unit = {
+ sql(s"INSERT OVERWRITE TABLE t PARTITION(c3=3$i, c4=4$i)
$selectStatement")
Review comment:
Shall we simplify this by using `VALUES` instead of `$selectStatement`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]