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

[druid] Fixing Druid version check #5028

Conversation

john-bodley
Copy link
Member

@john-bodley john-bodley commented May 17, 2018

While investigation another issue with @GabeLoins we realized that the Druid version check was invalid, i.e., per the comment on line #626 this issue was fixed in 0.8.2, yet the following condition

 not self.version_higher(self.cluster.druid_version, '0.8.2')

returns True for any version less than or equal to 0.8.2 rather than being exclusive of 0.8.2 since this is the version which included the fix. The same logic was wrong on line #646.

The fix is to use distutils.version.LooseVersion for version checking which abides by Druid's semantic versioning.

to: @GabeLoins @mistercrunch

@john-bodley john-bodley force-pushed the john-bodley-update-druid-version-checks branch from 1858264 to 649b013 Compare May 17, 2018 20:12
@john-bodley john-bodley force-pushed the john-bodley-update-druid-version-checks branch from 649b013 to 76cb4c5 Compare May 17, 2018 20:44
@codecov-io
Copy link

codecov-io commented May 17, 2018

Codecov Report

Merging #5028 into master will decrease coverage by <.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5028      +/-   ##
==========================================
- Coverage   77.34%   77.33%   -0.01%     
==========================================
  Files          44       44              
  Lines        8665     8654      -11     
==========================================
- Hits         6702     6693       -9     
+ Misses       1963     1961       -2
Impacted Files Coverage Δ
superset/connectors/druid/models.py 80.5% <66.66%> (-0.02%) ⬇️

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 5a64b3f...76cb4c5. Read the comment docs.

@john-bodley
Copy link
Member Author

ping @GabeLoins

@mistercrunch
Copy link
Member

LGTM

@john-bodley john-bodley merged commit 7d1c035 into apache:master Jun 8, 2018
@john-bodley john-bodley deleted the john-bodley-update-druid-version-checks branch June 8, 2018 23:55
timifasubaa pushed a commit to airbnb/superset-fork that referenced this pull request Jul 25, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.26.0 labels Feb 27, 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 🚢 0.26.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants