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:27:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Takeshi Yamamuro updated SPARK-28061:
-------------------------------------
    Parent Issue: SPARK-30375  (was: SPARK-27764)

> 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