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

Wenchen Fan resolved SPARK-27174.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

Issue resolved by pull request 24107
[https://github.com/apache/spark/pull/24107]

> Support casting integer types to BinaryType
> -------------------------------------------
>
>                 Key: SPARK-27174
>                 URL: https://issues.apache.org/jira/browse/SPARK-27174
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Martin Junghanns
>            Assignee: Martin Junghanns
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> Currently, only {{StringType}} can be cast to {{BinaryType}}.
> Integer types also have a well known two's complement binary representation 
> and can therefore be unambiguously cast to {{BinaryType}}.
> This PR adds support for casting
> * {{ByteType}}
> * {{ShortType}}
> * {{IntegerType}}
> * {{LongType}}
> to {{BinaryType}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to