You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/03/04 18:40:00 UTC

[jira] [Assigned] (SPARK-38415) Update histogram_numeric (x, y) result type to make x == input type

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

Apache Spark reassigned SPARK-38415:
------------------------------------

    Assignee: Apache Spark

> Update histogram_numeric (x, y) result type to make x == input type 
> --------------------------------------------------------------------
>
>                 Key: SPARK-38415
>                 URL: https://issues.apache.org/jira/browse/SPARK-38415
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: Daniel
>            Assignee: Apache Spark
>            Priority: Major
>
> Currently the `histogram_numeric` function always returns a struct of (x, y) double-precision floating-point pairs. However, the function may accept various numeric input types including integers, intervals, etc., in which case users must generally explicitly cast the double-precision result back to the original input type. In this improvement, we will update the output type to propagate the input type to the output.
> Note that usage analysis for this function does not appear to yield much traffic currently, so it seems OK to just change the output type directly.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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