-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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(metastore-cache): add codec support #24586
Conversation
Codecov Report
@@ Coverage Diff @@
## master #24586 +/- ##
==========================================
- Coverage 69.08% 69.06% -0.02%
==========================================
Files 1906 1906
Lines 74168 74175 +7
Branches 8164 8164
==========================================
- Hits 51239 51232 -7
- Misses 20807 20821 +14
Partials 2122 2122
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 7 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
dd1cbca
to
261c5fa
Compare
261c5fa
to
af1ce10
Compare
(cherry picked from commit a4880ca)
@michael-s-molina I see that this PR is flagged for 3.0. You'll probably also want to bring in #24970 |
Thanks @eschutho. Will do. |
SUMMARY
This PR adds the option to use a custom codec for serializing/deserializing values in the
SupersetMetastoreCache
. In addition, the default Explore form data and Dashboard filter state cache config is changed to use the JSON key-value codec. This will not affect deployments that are using Redis or another cache. In addition, we're already emitting a warning when using it in prod, and since it will only cause a problem if a user happens to refresh their browser right after the state has last been updated, there is minimal risk that this will cause issues for users.Tests are added to ensure that the cache works as expected with both the JSON and Pickle codecs.
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION