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

Support NULL value in Sum, Max, Min Aggregation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Future
    • Component/s: None
    • Labels:
      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-3.0.0-alpha2.png
          116 kB
          wangrupeng
        2. KYLIN-3392-2.png
          148 kB
          wangrupeng
        3. KYLIN-3392.png
          381 kB
          wangrupeng

          Issue Links

            Activity

              People

              • Assignee:
                Yifei_Wu94 Yifei Wu
                Reporter:
                Yifei_Wu94 Yifei Wu
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: