-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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 v0.6 compatibility (second try) #4329
Conversation
Just a couple of thoughts:
|
@xrmx doesn't have SQL support at all. I think SQLAlchemy access to druid might require |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just reference self.cluster.druid_version
instead of passing it around?
@@ -207,13 +211,14 @@ def refresh(self, datasource_names, merge_flag, refreshAll): | |||
if datatype == 'hyperUnique' or datatype == 'thetaSketch': | |||
col_obj.count_distinct = True | |||
# Allow sum/min/max for long or double | |||
if datatype == 'LONG' or datatype == 'DOUBLE': | |||
if datatype == 'LONG' or datatype == 'DOUBLE' or datatype == 'FLOAT': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's use datetype in ('foo', 'bar')
@@ -119,7 +119,11 @@ def get_druid_version(self): | |||
endpoint = ( | |||
'http://{obj.coordinator_host}:{obj.coordinator_port}/status' | |||
).format(obj=self) | |||
return json.loads(requests.get(endpoint).text)['version'] | |||
ver = json.loads(requests.get(endpoint).text)['version'] | |||
if ver is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return ver or "0"
instead of the 4 lines
These commits allowed me to set up latest superset with our company's Druid v0.6 cluster. I have tried not to break anything for any newer versions.
This is second try for those changes to merge into upstream, first pull request was here #2331.