Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12618#discussion_r65272201
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala
 ---
    @@ -164,8 +215,14 @@ class SessionCatalog(
         externalCatalog.getDatabase(dbName)
       }
     
    + /**
    +  * Return whether a database with the specified name exists.
    +  */
       def databaseExists(db: String): Boolean = {
    -    val dbName = formatDatabaseName(db)
    +   // We do not validate if names are following the naming rules when 
checking if database exists.
    +   // Running SQL on files directly could break the rules. For example,
    +   //   select id from 
`org.apache.spark.sql.parquet`.`path/to/parquet/files` as p
    --- End diff --
    
    bad indentation


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to