-
Notifications
You must be signed in to change notification settings - Fork 14.9k
fix: Temporal filter conversion in viz migrations #33224
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
base: master
Are you sure you want to change the base?
fix: Temporal filter conversion in viz migrations #33224
Conversation
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.
Review by Korbit AI
Korbit automatically attempts to detect when you fix issues in new commits.
Category | Issue | Status |
---|---|---|
Exclusive End Date Boundary ▹ view | 🧠 Incorrect |
Files scanned
File Path | Reviewed |
---|---|
superset/migrations/shared/migrate_viz/base.py | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Check out our docs on how you can make Korbit work best for you and your team.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #33224 +/- ##
===========================================
+ Coverage 0 83.24% +83.24%
===========================================
Files 0 553 +553
Lines 0 39936 +39936
===========================================
+ Hits 0 33245 +33245
- Misses 0 6691 +6691
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:
|
c630e6a
to
3c9e0bb
Compare
SUMMARY
This PR fixes a bug with the conversion of legacy temporal columns to filters that happens during viz migrations. The problem occurred when generating the filter SQL expression from a custom SQL column. Previously, the SQL expression was missing the time ranges resulting in invalid WHERE clauses.
TESTING INSTRUCTIONS
Create a legacy chart with a temporal column that uses custom SQL and use the CLI to migrate the viz.
ADDITIONAL INFORMATION