Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4738

stddev_samp() returns 0 when it should return NULL

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Impala 2.8.0
    • Fix Version/s: Impala 2.9.0
    • Component/s: Backend
    • Labels:

      Description

      Discovered using SF1 TPC-DS and query17.

      PostgreSQL 9.6.1

      grahn=# select stddev_samp(56);
       stddev_samp
      -------------
              NULL
      (1 row)
      

      Impala version 2.7.0-cdh5.10.0 RELEASE (build 1c57740759e175d8810c6790af3c5a60862a0ce9)

      select stddev_samp(56) from (values(1)) t;
      +-----------------+
      | stddev_samp(56) |
      +-----------------+
      | 0               |
      +-----------------+
      

        Attachments

          Activity

            People

            • Assignee:
              anujphadke Anuj Phadke
              Reporter:
              grahn Greg Rahn
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: