HyukjinKwon commented on code in PR #45776:
URL: https://github.com/apache/spark/pull/45776#discussion_r1549230211


##########
sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala:
##########
@@ -766,6 +778,15 @@ class DataFrameReader private[sql](sparkSession: 
SparkSession) extends Logging {
     }
   }
 
+  /**
+   * A convenient function for paths validation in APIs.
+   */
+  private def assertNonEmptyPaths(paths: String*): Unit = {
+    if (userSpecifiedSchema.isEmpty) {
+      require(paths.nonEmpty, "The paths cannot be empty")

Review Comment:
   What about SQL?



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

Reply via email to