[ 
https://issues.apache.org/jira/browse/CALCITE-7103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

xiaochen.zhou updated CALCITE-7103:
-----------------------------------
    Description: 
However, currently, the Hive and Spark dialects will remove the {{AS}} during 
parsing.

!image-2025-07-20-04-21-14-158.png|width=709,height=290!

In Hive and Spark engines, the {{AS}} syntax is supported. 
[https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select.html|http://example.com/]

!image-2025-07-20-03-56-55-568.png!

Therefore, i think we should set the default value of the method:

{{!image-2025-07-20-03-55-59-759.png|width=655,height=149!}}

to {{true}} in their respective dialects.

  was:
In Hive and Spark engines, the {{AS}} syntax is supported. 
[https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select.html|http://example.com/]

!image-2025-07-20-03-56-55-568.png!

However, currently, the Hive and Spark dialects will remove the {{AS}} during 
parsing.

!image-2025-07-20-04-21-14-158.png|width=709,height=290!

 

Therefore, we should set the default value of the method:

{{!image-2025-07-20-03-55-59-759.png|width=655,height=149!}}

to {{true}} in their respective dialects.


> Invalid unparse for named expression in HiveDialect and SparkDialect
> --------------------------------------------------------------------
>
>                 Key: CALCITE-7103
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7103
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: xiaochen.zhou
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: image-2025-07-20-03-55-59-759.png, 
> image-2025-07-20-03-56-55-568.png, image-2025-07-20-04-21-14-158.png
>
>
> However, currently, the Hive and Spark dialects will remove the {{AS}} during 
> parsing.
> !image-2025-07-20-04-21-14-158.png|width=709,height=290!
> In Hive and Spark engines, the {{AS}} syntax is supported. 
> [https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select.html|http://example.com/]
> !image-2025-07-20-03-56-55-568.png!
> Therefore, i think we should set the default value of the method:
> {{!image-2025-07-20-03-55-59-759.png|width=655,height=149!}}
> to {{true}} in their respective dialects.



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

Reply via email to