You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Sergey Nuyanzin (Jira)" <ji...@apache.org> on 2024/05/06 22:20:05 UTC
[jira] [Closed] (CALCITE-6247) BigQuery FORMAT_DATE function handles incorrectly the %e format specifier
[ https://issues.apache.org/jira/browse/CALCITE-6247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Nuyanzin closed CALCITE-6247.
------------------------------------
Resolved in release 1.37.0 (2024-05-06)
> 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
> Fix For: 1.37.0
>
>
> 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)