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

[jira] [Commented] (SPARK-28061) Support for converting float/double to binary format

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

Takeshi Yamamuro commented on SPARK-28061:
------------------------------------------

I'll close this because these functions are internal in postgresql and I think we don't need to support this in spark.

> Support for converting float/double to binary format
> ----------------------------------------------------
>
>                 Key: SPARK-28061
>                 URL: https://issues.apache.org/jira/browse/SPARK-28061
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Yuming Wang
>            Priority: Major
>
> Examples:
> {code:sql}
> SELECT float4send('5e-20'::float4);
> SELECT float4send('67e14'::float4);
> SELECT float4send('985e15'::float4);
> SELECT float4send('55895e-16'::float4);
> SELECT float4send('7038531e-32'::float4);
> SELECT float4send('702990899e-20'::float4);
> {code}
> float4send:
> https://github.com/postgres/postgres/blob/16d489b0fe058e527619f5e9d92fd7ca3c6c2994/src/backend/utils/adt/float.c#L314-L326
> float8send:
> https://github.com/postgres/postgres/blob/16d489b0fe058e527619f5e9d92fd7ca3c6c2994/src/backend/utils/adt/float.c#L566-L578



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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