You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kousuke Saruta (Jira)" <ji...@apache.org> on 2021/03/05 07:22:00 UTC

[jira] [Created] (SPARK-34636) sql method in UnresolvedAttribute, AttributeReference and Alias don't quote qualified names properly.

Kousuke Saruta created SPARK-34636:
--------------------------------------

             Summary: sql method in UnresolvedAttribute, AttributeReference and Alias don't quote qualified names properly.
                 Key: SPARK-34636
                 URL: https://issues.apache.org/jira/browse/SPARK-34636
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.1.1, 3.0.2, 3.2.0
            Reporter: Kousuke Saruta
            Assignee: Kousuke Saruta


UnresolvedReference, AttributeReference and Alias which take qualifier don't quote qualified names properly.

One instance is reported in SPARK-34626.
Other instances are like as follows.

{code}
UnresolvedAttribute("a`b"::"c.d"::Nil).sql
a`b.`c.d` // should be `a``b`.`c.d`

AttributeReference("a.b", IntegerType)(qualifier = "c.d"::Nil)
c.d.`a.b` // should be `c.d`.`a.b`

Alias(AttributeReference("a", IntegerType)(), "b.c")(qualifier = "d.e"::Nil).sql
`a` AS d.e.`b.c` // should be `a` AS `d.e`.`b.c`



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org