You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Daniel (Jira)" <ji...@apache.org> on 2022/03/04 18:40:00 UTC
[jira] (SPARK-38415) Update histogram_numeric (x, y) result type to make x == input type
[ https://issues.apache.org/jira/browse/SPARK-38415 ]
Daniel deleted comment on SPARK-38415:
--------------------------------
was (Author: JIRAUSER285772):
PR to update this behavior is out for review in: https://github.com/apache/spark/pull/35735
> 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
> 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