-
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
chore(presto): Expose schema and indexes to _partition_query method #23674
chore(presto): Expose schema and indexes to _partition_query method #23674
Conversation
superset/db_engine_specs/presto.py
Outdated
cls, | ||
schema: Optional[str], |
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.
Given this is a private method, changing the order of the function arguments is deemed non-breaking.
Codecov Report
@@ Coverage Diff @@
## master #23674 +/- ##
=======================================
Coverage 68.08% 68.09%
=======================================
Files 1920 1922 +2
Lines 73990 74041 +51
Branches 8092 8101 +9
=======================================
+ Hits 50379 50419 +40
- Misses 21540 21551 +11
Partials 2071 2071
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
30c721e
to
8d2d14e
Compare
|
||
Note the unused arguments are exposed for sub-classing purposes where custom |
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.
@michael-s-molina per our offline discussion I added this comment as to why the unused arguments are included.
f522aa8
to
c590a88
Compare
c590a88
to
9cfc5ca
Compare
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
…pache#23674) Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> (cherry picked from commit 100ccb7)
…pache#23674) Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> (cherry picked from commit 100ccb7)
…pache#23674) Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
SUMMARY
This PR exposes the schema and indexes to the internal (private)
PrestoBaseEngineSpec._partition_query
method as these could be useful for custom overrides of the partition query.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
CI.
ADDITIONAL INFORMATION