fix(chart): preserve SQL_QUERY_MUTATOR line comments structure#41215
fix(chart): preserve SQL_QUERY_MUTATOR line comments structure#41215Vitor-Avila wants to merge 1 commit into
Conversation
Code Review Agent Run #2d6fefActionable 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #41215 +/- ##
=======================================
Coverage 64.36% 64.36%
=======================================
Files 2651 2651
Lines 144812 144813 +1
Branches 33417 33417
=======================================
+ Hits 93203 93204 +1
Misses 49938 49938
Partials 1671 1671
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
SUMMARY
A common use case for
SQL_QUERY_MUTATORis to add metadata comments to a query. For example, a chart query could be:We were re-parsing the query after the mutator with
.format(), which would change this query to:This breaks existing logic built externally to parse logs. Additionally, Superset should change queries as little as possible.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
No UI changes.
TESTING INSTRUCTIONS
SQL_QUERY_MUTATOR.ADDITIONAL INFORMATION