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

Sum function on all null values, should return zero

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.1, 1.4.0
    • SQL
    • None

    Description

      SELECT sum('a'), avg('a'), variance('a'), std('a') FROM src;
      Current output:
      NULL NULL NULL NULL
      Expected output:
      0.0 NULL NULL NULL

      This fixes hive udaf_number_format.q

      Attachments

        Issue Links

          Activity

            People

              gvramana Venkata Gollamudi
              gvramana Venkata Gollamudi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: