[ 
https://issues.apache.org/jira/browse/CALCITE-5870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17756225#comment-17756225
 ] 

Jiajun Xie commented on CALCITE-5870:
-------------------------------------

Fixed in 
[f901d7d|https://github.com/apache/calcite/commit/f901d7d44a41e3a1db010c42dd4a422dcb31996c]

 

Thanks for the PR, [~shenlang] 

Thanks for the review, [~julianhyde]  and  [~zstan] 

> Allow literals like DECIMAL '12.3' (consistent with Postgres)
> -------------------------------------------------------------
>
>                 Key: CALCITE-5870
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5870
>             Project: Calcite
>          Issue Type: New Feature
>          Components: core
>            Reporter: LakeShen
>            Assignee: LakeShen
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.36.0
>
>         Attachments: image-2023-07-24-19-23-30-316.png, 
> image-2023-07-24-19-26-44-131.png
>
>
> In Postgresql,It supports the following sql grammar:
> {code:java}
> select DECIMAL '99.999' {code}
> Postgresql converts DECIMAL '99.999' to numeric constants:
> !image-2023-07-24-19-23-30-316.png|width=399,height=186!
> Now core sql parser converts DECIMAL '99.999' to AS SqlBasicCall,like this:
> !image-2023-07-24-19-26-44-131.png|width=529,height=224!
> this jira allow literals like DECIMAL '12.3' (consistent with Postgres)



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

Reply via email to