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

Julian Hyde commented on CALCITE-6252:
--------------------------------------

It's OK to change the summary, but it might be OK to keep the summary as is. 
When a bug has a broad effect (several format elements in several dialects) 
sometimes it's easier to describe just one manifestation of the bug. A concrete 
example - mentioning particular SQL function, and a representative example - 
rarely fails. In the commit message you can describe the other 'related bugs' 
that are also solved. 

> BigQuery FORMAT_DATE uses the wrong calendar for Julian dates
> -------------------------------------------------------------
>
>                 Key: CALCITE-6252
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6252
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.36.0
>            Reporter: Mihai Budiu
>            Priority: Minor
>              Labels: pull-request-available
>
> For the following query:
> {code:sql}
> SELECT format_date('%A %d %B %Y', '0001-01-01')
> {code}
> the BigQuery playground returns the following result:
> {code}
> Monday 01 January 1
> {code}
> However, Calcite returns the following result:
> {code}
> Saturday 01 Jan 1
> {code}
> There are actually two bugs here:
> - the day of the week is wrong
> - the month name is displayed incorrectly. The latter is because of the 
> Locale.ROOT used in SimpleDateFormat.



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

Reply via email to