dtenedor commented on code in PR #36771: URL: https://github.com/apache/spark/pull/36771#discussion_r894798568
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/ResolveDefaultColumnsUtil.scala: ########## @@ -95,7 +95,7 @@ object ResolveDefaultColumns { if (SQLConf.get.enableDefaultColumns) { val allowedTableProviders: Array[String] = SQLConf.get.getConf(SQLConf.DEFAULT_COLUMN_ALLOWED_PROVIDERS) - .toLowerCase().split(",").map(_.trim) + .toLowerCase().split(",").map(_.trim) ++ Seq("") Review Comment: Good question: we include the empty string here to allow the 'tableProvider' argument to be empty. This is only empty in tests, for example when using the InMemoryTableCatalog. In all other cases, the code requires a non-empty table provider to be given to this method call. I added this information to a comment here to help explain. (Sorry for the accidental force-push; the only change was adding this comment.) -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org