You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Martin Junghanns (JIRA)" <ji...@apache.org> on 2019/03/15 10:37:00 UTC

[jira] [Commented] (SPARK-27174) Support casting integer types to BinaryType

    [ https://issues.apache.org/jira/browse/SPARK-27174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16793525#comment-16793525 ] 

Martin Junghanns commented on SPARK-27174:
------------------------------------------

I'm working on the PR.

> 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
>            Priority: Minor
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org