Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2049

Incorrect AVG result with NULL measure values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v2.4.0
    • Query Engine
    • None

    Description

      Thanks to Itay. From - http://stackoverflow.com/questions/39664918/apache-kylin-null-value-measures-become-zeros

      I'm trying to build a Kylin Cube that will get me the Average of a SmallInt nullable column Col1. I expect any null value to not be counted towards this average. When I work on my table in Hive this is exactly the result that I'm getting when applying the AVG function. However when I build the cube in Kylin on top of this table all the null values in my measurements columns are becoming zeros and then counted towards the calculation of the AVG. Is there a way to force Kylin to treat nulls as nulls?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              liyang.gmt8@gmail.com liyang
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: