-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
chore: Add Druid SQL time grains for parity with Druid NoSQL #15320
chore: Add Druid SQL time grains for parity with Druid NoSQL #15320
Conversation
Codecov Report
@@ Coverage Diff @@
## master #15320 +/- ##
==========================================
- Coverage 77.16% 77.01% -0.16%
==========================================
Files 973 973
Lines 50523 50523
Branches 6184 6184
==========================================
- Hits 38986 38909 -77
- Misses 11331 11408 +77
Partials 206 206
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
f8318d2
to
454f831
Compare
@villebro would you mind re-reviewing this PR? I added all the additional time grains (not just week starting/ending) which have not previously been defined or the SQL connector. Let me know if this should be added in Furthermore I'm not sure if additional work is required, i.e., for Pandas post processing per here. Additionally I'm not sure if the custom time grain configuration logic actually works if these need to be defined within the post processing as mentioned above, i.e., can Superset really support custom time grains? |
I think this is fine. We have plans to introduce freeform timegrains (where easily supported), via regex or other pattern matching schemes. This would make it possible to do arbitrary time grains, like
I think it's ok, at least for now, to just support the built-in time grains in the forecasting feature. But here we could probably fairly easily also support more custom increments via regex. I'd be happy to add this as soon as someone requests it or when we start working on the arbitrary precision time grain feature. |
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.
LGTM
…5320) Co-authored-by: John Bodley <john.bodley@airbnb.com>
…5320) Co-authored-by: John Bodley <john.bodley@airbnb.com>
…5320) Co-authored-by: John Bodley <john.bodley@airbnb.com>
SUMMARY
Adding Druid SQL time grains for parity with Druid NoSQL per here. Note the Druid NoSQL connector supports simple natural language whereas the SQL connector does not.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
AFTER
TESTING INSTRUCTIONS
Verified the SQL logic adhered to other database engine specifications.
ADDITIONAL INFORMATION