-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
Return __time in Druid scan #4504
Conversation
superset/viz.py
Outdated
@@ -2040,7 +2040,7 @@ def get_properties(self, d): | |||
'radius': self.fixed_value if self.fixed_value else d.get(self.metric), | |||
'cat_color': d.get(self.dim) if self.dim else None, | |||
'position': d.get('spatial'), | |||
'__timestamp': d.get('__timestamp'), | |||
'__timestamp': d.get('__timestamp') or d.get('__time'), |
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.
There's a constant in scope that you can use: DTTM_ALIAS : d.get(DTTM_ALIAS) or d.get('__time'),
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.
We could introduce a DRUID_DTTM_ALIAS
constant but may be out of scope for this PR
Codecov Report
@@ Coverage Diff @@
## master #4504 +/- ##
=========================================
Coverage ? 71.12%
=========================================
Files ? 187
Lines ? 14781
Branches ? 1083
=========================================
Hits ? 10513
Misses ? 4265
Partials ? 3
Continue to review full report at Codecov.
|
* Return __time in Druid scan * use constant instead of __timestamp * Fix lint (cherry picked from commit 1647004)
* Return __time in Druid scan * use constant instead of __timestamp * Fix lint (cherry picked from commit 1647004)
* Cherry pick apache#4581 * Add flask-compress cherry * Add shortner fix * Add Return __time in Druid scan apache#4504 * Picking cherry Fixing regression from apache#4500 (apache#4549) * [bugfix] SQL Lab 'MySQL has gone away' It appears the 'MySQL has gone away' is triggered by the line of code I wrapped in a try block here. This is a temporary fix, there will be another PR shortly getting to the bottom of this. Related: https://github.com/lyft/druidstream/issues/40
* Return __time in Druid scan * use constant instead of __timestamp * Fix lint
* Return __time in Druid scan * use constant instead of __timestamp * Fix lint
When doing a scan in Druid we're not returning the temporal column
__time
, which is needed for the play slider.I also fixed the status URL, which is broken in master.