Skip to content

null handling for doubles sketch and array of doubles sketch aggs#9112

Merged
jon-wei merged 2 commits intoapache:masterfrom
clintropolis:doubles-sketches-and-nulls
Jan 7, 2020
Merged

null handling for doubles sketch and array of doubles sketch aggs#9112
jon-wei merged 2 commits intoapache:masterfrom
clintropolis:doubles-sketches-and-nulls

Conversation

@clintropolis
Copy link
Copy Markdown
Member

Description

Similar to #9073 and #9075, this PR modifies doubles sketch and array of doubles sketch aggregators to ignore null valued rows when SQL compatible null handling mode is enabled.

Note that it is still possible to treat null valued rows as 0 in SQL compatible null handling mode if desired by the user, through using virtual columns with nvl, as illustrated in one of the added tests.


This PR has:

  • been self-reviewed.
  • added unit tests or modified existing tests to cover new code paths.

Copy link
Copy Markdown
Contributor

@jon-wei jon-wei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jon-wei jon-wei merged commit 7af8525 into apache:master Jan 7, 2020
clintropolis added a commit to clintropolis/druid that referenced this pull request Jan 8, 2020
…ache#9112)

* doubles sketch and array of doubles sketch aggs now skip rows with nulls in sql compatible null handling mode

* formatting
clintropolis added a commit that referenced this pull request Jan 9, 2020
) (#9148)

* doubles sketch and array of doubles sketch aggs now skip rows with nulls in sql compatible null handling mode

* formatting
@clintropolis clintropolis deleted the doubles-sketches-and-nulls branch January 9, 2020 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants