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

Tim Nieradzik commented on CALCITE-5619:
----------------------------------------

On macOS, the `ROOT` locale behaves incorrectly:
@ (new SimpleDateFormat("EEE", Locale.ROOT)).format(new Date());
res4: String = "Sat"

@ (new SimpleDateFormat("EEEE", Locale.ROOT)).format(new Date());
res5: String = "Sat"  // should be "Saturday"

@ Locale.ROOT
res1: Locale =
This is covered by `testToChar`.

> Support PostgreSQL's TO_CHAR function
> -------------------------------------
>
>                 Key: CALCITE-5619
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5619
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Tim Nieradzik
>            Assignee: Tim Nieradzik
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.35.0
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> PostgreSQL has three to_char() functions:
> {{to_char ( timestamp, text ) → text}}
> {{to_char ( interval, text ) → text}}
> {{to_char ( numeric_type, text ) → text}}
> The following query cannot be parsed because the first to_char() function is 
> not supported:
> {{select to_char(current_timestamp, 'YYYY-MM-DD HH24:MI:SS.MS TZ')}}



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

Reply via email to