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

Support NULL value in Sum, Max, Min Aggregation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • None
    • Future
    • None
    • None

    Description

      It is treated as 0 when confronted with NULL value in KYLIN's basic aggregate measure (like sum, max, min). However, to distinguish the NULL value with 0 is very necessary.

      It should be like this

      sum(null, null) = null

      sum(null, 1) = 1

      max(null, null) = null

      max(null, -1) = -1

      min(null, -1)= -1

       in accordance with Hive and SparkSQL

      Attachments

        1. KYLIN-3392-2.png
          148 kB
          Wang Rupeng
        2. KYLIN-3392.png
          381 kB
          Wang Rupeng
        3. kylin-3.0.0-alpha2.png
          116 kB
          Wang Rupeng

        Issue Links

          Activity

            People

              Yifei_Wu94 Yifei Wu
              Yifei_Wu94 Yifei Wu
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: