You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/05/10 13:31:51 UTC
[GitHub] [spark] cloud-fan commented on a diff in pull request #36418: [SPARK-39079][SQL] Catalog name should not contain dot
cloud-fan commented on code in PR #36418:
URL: https://github.com/apache/spark/pull/36418#discussion_r869240635
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/connector/catalog/Catalogs.scala:
##########
@@ -45,7 +45,11 @@ private[sql] object Catalogs {
@throws[SparkException]
def load(name: String, conf: SQLConf): CatalogPlugin = {
val pluginClassName = try {
- conf.getConfString("spark.sql.catalog." + name)
+ val _pluginClassName = conf.getConfString("spark.sql.catalog." + name)
+ if (name.contains(".")) {
Review Comment:
Shall we follow `org.apache.spark.sql.catalyst.util.quoteIfNeeded` and only allow catalog names that match `name.matches("[a-zA-Z0-9_]+") && !name.matches("\\d+")`
--
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-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org