cloud-fan commented on a change in pull request #29316:
URL: https://github.com/apache/spark/pull/29316#discussion_r484859737



##########
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:
       should this be done in an analyzer rule? how do we do the same check for 
file source tables?




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