[ https://issues.apache.org/jira/browse/SPARK-28696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16905162#comment-16905162 ]
Sean Owen commented on SPARK-28696: ----------------------------------- [~cloud_fan] may be a better contact. I guess Hive compatibility is a good idea, and a DB named "_" sounds odd, but I don't know if there is another standard that dictates what is supported. I think it could be OK to disallow for 3.0 if there's a reason, as I highly doubt there are real user tables with this DB name out there (?) > create database _; allowing in Spark but Hive throws Parse Exception > -------------------------------------------------------------------- > > Key: SPARK-28696 > URL: https://issues.apache.org/jira/browse/SPARK-28696 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 3.0.0 > Reporter: ABHISHEK KUMAR GUPTA > Priority: Minor > > In Spark > spark-sql> create database _; > Time taken: 0.062 seconds > spark-sql> show databases; > _ > adap > adaptive > adaptive_tc8 > In Hive > 0: jdbc:hive2://10.18.98.147:21066/> create database _; > Error: Error while compiling statement: FAILED: ParseException line 1:16 > cannot recognize input near '_--0' '<EOF>' '<EOF>' in create database > statement (state=42000,code=40000) -- This message was sent by Atlassian JIRA (v7.6.14#76016) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org