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

Support NULL value in Sum, Max, Min Aggregation

Agile BoardAttach filesAttach ScreenshotAdd voteVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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-3.0.0-alpha2.png
          116 kB
          Wang Rupeng
        2. KYLIN-3392-2.png
          148 kB
          Wang Rupeng
        3. KYLIN-3392.png
          381 kB
          Wang Rupeng

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Yifei_Wu94 Yifei Wu
            Yifei_Wu94 Yifei Wu

            Dates

              Created:
              Updated:

              Slack

                Issue deployment