kazuyukitanimura commented on code in PR #36067:
URL: https://github.com/apache/spark/pull/36067#discussion_r842336722
##########
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/InsertIntoHiveTable.scala:
##########
@@ -114,7 +114,11 @@ case class InsertIntoHiveTable(
CommandUtils.uncacheTableOrView(sparkSession,
table.identifier.quotedString)
sparkSession.sessionState.catalog.refreshTable(table.identifier)
- CommandUtils.updateTableStats(sparkSession, table)
+ val partitionSpec = partition.map {
+ case (key, Some(null)) => key ->
Some(ExternalCatalogUtils.DEFAULT_PARTITION_NAME)
+ case other => other
+ }
+ CommandUtils.updateTableStats(sparkSession, table, partitionSpec)
Review Comment:
So for dynamic partition, my understanding is that we will get a map of
`"key" -> None` that will be resolved within `AnalyzePartitionCommand`
I can add a new test for that.
--
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]