You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Dan Zou (Jira)" <ji...@apache.org> on 2023/08/22 02:23:00 UTC
[jira] [Resolved] (CALCITE-5848) Add BIT_GET and GETBIT function (enabled in Spark library)
[ https://issues.apache.org/jira/browse/CALCITE-5848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Zou resolved CALCITE-5848.
------------------------------
Resolution: Fixed
Merged via [95a59d6|https://github.com/apache/calcite/commit/95a59d66c0448f2742f229c0d7e7ed140254c880]. Thanks for the PR, [~Runking].
> Add BIT_GET and GETBIT function (enabled in Spark library)
> ----------------------------------------------------------
>
> Key: CALCITE-5848
> URL: https://issues.apache.org/jira/browse/CALCITE-5848
> Project: Calcite
> Issue Type: New Feature
> Components: core
> Affects Versions: 1.34.0
> Reporter: Runkang He
> Assignee: Runkang He
> Priority: Major
> Labels: pull-request-available
>
> Add BIT_GET and GETBIT function (enabled in Spark library):
> BIT_GET(expr, pos) - Returns the value of the bit (0 or 1) at the specified position. The positions are numbered from right to left, starting at zero. The position argument cannot be negative.
> GETBIT is an alias of BIT_GET.
> See more details in [Spark|https://spark.apache.org/docs/latest/api/sql/index.html#bit_get] doc.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)