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

feat: use well-defined dimensions instead of strings #284

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

cosmic-chichu
Copy link
Contributor

Using dimensions as a list of strings causes ambiguity in other druid clients. Well-defined dimensions makes use of the utility in pydruid to create dimensions as DimensionSpec. This helps with deterministic serialization and de-serialization of the query.

Signed-off-by: Shrivardhan Rao <Shrivardhan_Rao@intuit.com>
@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Merging #284 (5d50dde) into main (de8930a) will decrease coverage by 0.03%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main     #284      +/-   ##
==========================================
- Coverage   93.29%   93.26%   -0.03%     
==========================================
  Files          66       66              
  Lines        2909     2911       +2     
  Branches      233      234       +1     
==========================================
+ Hits         2714     2715       +1     
  Misses        156      156              
- Partials       39       40       +1     
Files Changed Coverage Δ
numalogic/connectors/druid.py 84.61% <50.00%> (-1.88%) ⬇️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@nkoppisetty nkoppisetty left a comment

Choose a reason for hiding this comment

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

LGMT. Thank you for fixing this @cosmic-chichu

Copy link
Member

@ab93 ab93 left a comment

Choose a reason for hiding this comment

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

Small comment

numalogic/connectors/druid.py Outdated Show resolved Hide resolved
use generator

Co-authored-by: Avik Basu <3485425+ab93@users.noreply.github.com>
Signed-off-by: shrivardhan <shrivardhan92@gmail.com>
Copy link

@qhuai qhuai left a comment

Choose a reason for hiding this comment

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

LGTM.

There is no unit test for this particular feature. Is this way of setting dimensions manually tested?

@ab93 ab93 merged commit 0cdc257 into numaproj:main Sep 13, 2023
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants