Anurag Mantripragada created SPARK-59947:
--------------------------------------------

             Summary: Resolve IDENTIFIER() in partition and ordering transform 
references
                 Key: SPARK-59947
                 URL: https://issues.apache.org/jira/browse/SPARK-59947
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 5.0.0
            Reporter: Anurag Mantripragada


In AstBuilder, visitQualifiedName builds a transform's column reference with 
_.getText instead of getIdentifierParts, so PARTITIONED BY (IDENTIFIER('id')) 
and, since SPARK-34586 (https://github.com/apache/spark/pull/58153), ORDERED BY 
IDENTIFIER('id') do not resolve IDENTIFIER() to the column `id`.

Resolve IDENTIFIER() in transform references the same way as elsewhere in the 
parser, e.g. IDENTIFIER('a.b') should give the reference a.b.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to