cxzl25 commented on a change in pull request #29316:
URL: https://github.com/apache/spark/pull/29316#discussion_r484987067



##########
File path: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/InsertIntoHiveTable.scala
##########
@@ -341,4 +345,17 @@ case class InsertIntoHiveTable(
         isSrcLocal = false)
     }
   }
+
+  /**
+   * Verify if the input partition spec has any empty value.
+   */
+  protected def requireNonEmptyValueInPartitionSpec(specs: 
Seq[TablePartitionSpec]): Unit = {
+    specs.foreach { s =>
+      if (s.values.exists(_.isEmpty)) {

Review comment:
       I move it to `PreprocessTableInsertion` rule.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to