fix: OpenSearch dialect identifier delimiters#39953
Conversation
Code Review Agent Run #1dea05Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #39953 +/- ##
==========================================
- Coverage 63.88% 63.87% -0.01%
==========================================
Files 2583 2583
Lines 136604 136625 +21
Branches 31502 31504 +2
==========================================
Hits 87276 87276
- Misses 47812 47833 +21
Partials 1516 1516
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
SUMMARY
This is a follow up to #39538. While the initial PR solved one issue for un-aggregated tables, further using the dialect exposed a bigger issue. The
elasticsearch-dbapidriver was removing any"from the queries, causing issues for metric/column labels like"my metric".I simplified the
sanitize_querymethod for theelasticsearch-dbapidriver here, so this PR bumps the package version in Superset while also defaulting to backticks as the identifier delimiter (the official one according to OpenSearch/OpenDistro docs). Double quotes are still supported in the dialect since the DBs supports it as well.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
No UI changes.
TESTING INSTRUCTIONS
count(*)andmy metricas the key.ADDITIONAL INFORMATION