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 18:56:00 UTC
[jira] [Commented] (CALCITE-5452) Add BigQuery LENGTH() as synonym for CHAR_LENGTH()
[ https://issues.apache.org/jira/browse/CALCITE-5452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17650976#comment-17650976 ]
Tanner Clary commented on CALCITE-5452:
---------------------------------------
I opened a PR for this issue. I changed some dependencies in the standard operator table to resolve a null pointer exception from some of the JSON standard functions marked as deprecated. Let me know if there are any issues with this. Thanks!
> 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
> Assignee: Tanner Clary
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)