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

    https://github.com/apache/spark/pull/3848#discussion_r22393319
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/SqlParser.scala ---
    @@ -178,7 +178,15 @@ class SqlParser extends AbstractSparkSQLParser {
         joinedRelation | relationFactor
     
       protected lazy val relationFactor: Parser[LogicalPlan] =
    -    ( ident ~ (opt(AS) ~> opt(ident)) ^^ {
    +    ( ident ~ ("." ~> ident) ~ ("." ~> ident) ~ (opt(AS) ~> opt(ident)) ^^ 
{
    +        case clusterName ~ dbName ~ tableName ~ alias =>
    +          UnresolvedRelation(None, clusterName + "." + dbName + "." + 
tableName, alias)
    --- End diff --
    
    Okay, but there is a field called `databaseName` and you aren't using it, 
and so this PR is putting the SQLParser and the HiveQL parser out of sync.  I 
think we should close this issue for now and discuss the requirements and 
design on the JIRA.


---
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