Xiao Li created SPARK-26307:
-------------------------------
Summary: Fix CTAS when INSERT a partitioned table using Hive serde
Key: SPARK-26307
URL: https://issues.apache.org/jira/browse/SPARK-26307
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 2.4.0, 2.3.2
Reporter: Xiao Li
Assignee: Xiao Li
{code:java}
withTable("hive_test") {
withSQLConf(
"hive.exec.dynamic.partition.mode" -> "nonstrict") {
val df = Seq(("a", 100)).toDF("part", "id")
df.write.format("hive").partitionBy("part")
.mode("overwrite").saveAsTable("hive_test")
df.write.format("hive").partitionBy("part")
.mode("append").saveAsTable("hive_test")
}
}{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]