-
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
fix: add having_druid back into the chart schema #20879
fix: add having_druid back into the chart schema #20879
Conversation
2c3d9f0
to
f321123
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.
😿 to see Druid NoSQL make a brief—and hopefully short lived—return.
Ha, yeah, I know. 😢 We'll do a fast-follow migration. |
Codecov Report
@@ Coverage Diff @@
## master #20879 +/- ##
==========================================
+ Coverage 66.23% 66.25% +0.02%
==========================================
Files 1757 1758 +1
Lines 66978 66988 +10
Branches 7117 7117
==========================================
+ Hits 44360 44386 +26
+ Misses 20801 20785 -16
Partials 1817 1817
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. |
🏷️ preset:2022.29 |
(cherry picked from commit cd578d2)
SUMMARY
The
having_druid
key still exists in some query table extras json blobs in the database. We removed the key from the chart schema in the native druid cleanup work #20338 but need to run a migration in order to remove the key permanently from query objects in the database. This PR is a temporary fix to add the property back into the schema for an easier cherry prior to the db migration. We need to remove this property again and run the migration together next.The error that we're seeing is on some reports that still have the old key
{"message":"Request is incorrect: {'queries': {0: {'extras': {'having_druid': ['Unknown field.']}}}}"}
TESTING INSTRUCTIONS
I added
having_druid
to an existing test and validated that it failed and then fixed the code and validated that it passed.ADDITIONAL INFORMATION