Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ad-hoc] Fixing type for COUNT DISTINCT #7573

Merged

Conversation

john-bodley
Copy link
Member

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

This PR fixes an issue with ad-hoc metrics using the Druid REST API related to COUNT DISTINCT. Specifically per the documentation the type should be hyperUnique when

... that has been aggregated as a "hyperUnique" metric at indexing time.

as opposed to cardinality. Both use HyperLogLog however the former is specific to Druid metrics which are of type hyperUnique (per the indexing aggregation) vs computing the cardinality of non-complex types.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A

TEST PLAN

CI.

REVIEWERS

to: @gabe-lyons @michellethomas @mistercrunch

@codecov-io
Copy link

Codecov Report

Merging #7573 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #7573   +/-   ##
=======================================
  Coverage   65.17%   65.17%           
=======================================
  Files         433      433           
  Lines       21428    21428           
  Branches     2360     2360           
=======================================
  Hits        13966    13966           
  Misses       7342     7342           
  Partials      120      120
Impacted Files Coverage Δ
superset/connectors/druid/models.py 82.38% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update efb085a...563ae63. Read the comment docs.

Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

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

LGTM

@john-bodley john-bodley merged commit 6b9790c into apache:master May 22, 2019
@john-bodley john-bodley deleted the john-bodley--adhoc-count-distinct branch May 22, 2019 16:41
@john-bodley john-bodley added the !deprecated-label:bug Deprecated label - Use #bug instead label May 22, 2019
john-bodley added a commit to john-bodley/superset that referenced this pull request Jul 11, 2019
etr2460 pushed a commit to airbnb/superset-fork that referenced this pull request Jul 11, 2019
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.0 labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels !deprecated-label:bug Deprecated label - Use #bug instead size/XS 🚢 0.34.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants