[
https://issues.apache.org/jira/browse/CALCITE-6247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated CALCITE-6247:
------------------------------------
Labels: pull-request-available (was: )
> BigQuery FORMAT_DATE function handles incorrectly the %e format specifier
> -------------------------------------------------------------------------
>
> Key: CALCITE-6247
> URL: https://issues.apache.org/jira/browse/CALCITE-6247
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.36.0
> Reporter: Mihai Budiu
> Priority: Trivial
> Labels: pull-request-available
>
> According to the BigQuery spec
> https://cloud.google.com/bigquery/docs/reference/standard-sql/format-elements#format_elements_date_time
> the %e format specified should mean: "The day of month as a decimal number
> (1-31); single digits are preceded by a space."
> However, the implementation in FormatModels.java BIGQUERY is:
> {code:java}
> map.put("%e", DD);
> {code}
> which is the same as %d, which uses a leading 0 instead of a space.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)