You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Ran Tao (Jira)" <ji...@apache.org> on 2023/07/10 07:38:00 UTC

[jira] [Created] (CALCITE-5829) Add BYTE_LENGTH function (enabled in BigQuery)

Ran Tao created CALCITE-5829:
--------------------------------

             Summary: Add BYTE_LENGTH function (enabled in BigQuery)
                 Key: CALCITE-5829
                 URL: https://issues.apache.org/jira/browse/CALCITE-5829
             Project: Calcite
          Issue Type: Improvement
          Components: core
    Affects Versions: 1.34.0
            Reporter: Ran Tao
            Assignee: Ran Tao


Returns the string or binary data bit numbers.

> SELECT byte_length('Apache Calcite');
14
> SELECT byte_length(x'4170616368652043616C63697465');
14

note: this functions is similar with calcite std \{octet_length} to some degree. but the input operand types and return types are not same with calcite \{octet_length} . 



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