ajithme commented on a change in pull request #25448: [SPARK-28697] Invalidate
Database/Table names starting with underscore
URL: https://github.com/apache/spark/pull/25448#discussion_r313837353
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala
##########
@@ -102,7 +102,7 @@ class SessionCatalog(
@GuardedBy("this")
protected var currentDb: String = formatDatabaseName(DEFAULT_DATABASE)
- private val validNameFormat = "([\\w_]+)".r
+ private val validNameFormat = "([a-zA-Z0-9]+[\\w]*)".r
Review comment:
yes, same as before.. just restricts name not to start with underscore
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]