You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2022/05/06 10:12:00 UTC

[jira] [Updated] (SPARK-36811) Add bitwise functions for the BINARY data type

     [ https://issues.apache.org/jira/browse/SPARK-36811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Max Gekk updated SPARK-36811:
-----------------------------
    Fix Version/s:     (was: 3.3.0)

> Add bitwise functions for the BINARY data type
> ----------------------------------------------
>
>                 Key: SPARK-36811
>                 URL: https://issues.apache.org/jira/browse/SPARK-36811
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: Menelaos Karavelas
>            Priority: Major
>   Original Estimate: 336h
>  Remaining Estimate: 336h
>
> Add four new SQL functions operating on the `BINARY` data type for performing bitwise operations: BITAND, BITOR, BITXOR, and BITNOT.
> The BITAND, BITOR, and BITXOR functions take two byte strings as input and return the bitwise AND, OR, or XOR of the two input byte strings. The byte size of the result is the maximum of the byte sizes of the inputs, while the result is computed by aligning the two strings with respect to their least significant byte, and left-padding with zeros the shorter of the two inputs.
> The BITNOT function is a unary function and returns the input byte string with all the bits negated.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org