Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-38415

Update histogram_numeric (x, y) result type to make x == input type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • SQL
    • None

    Description

      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.

      Attachments

        Activity

          People

            dtenedor Daniel
            dtenedor Daniel
            Wenchen Fan Wenchen Fan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: