You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Tanner Clary (Jira)" <ji...@apache.org> on 2022/12/21 17:52:00 UTC

[jira] [Created] (CALCITE-5452) Add BigQuery LENGTH() as synonym for CHAR_LENGTH()

Tanner Clary created CALCITE-5452:
-------------------------------------

             Summary: Add BigQuery LENGTH() as synonym for CHAR_LENGTH()
                 Key: CALCITE-5452
                 URL: https://issues.apache.org/jira/browse/CALCITE-5452
             Project: Calcite
          Issue Type: Improvement
            Reporter: Tanner Clary


Add {{LENGTH()}} as a synonym under the BigQuery library. Calcite currently supports {{CHAR_LENGTH()}} and {{CHARACTER_LENGTH()}} as standard functions which return the length of a provided string of characters. BigQuery offers the {{LENGTH()}} function which serves the same purpose. 

Example: SELECT LENGTH("hello"); would return 5.

[BigQuery Docs | https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#length ]



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