fix: Fixed numeric filtering issue in Superset - #33222
Conversation
There was a problem hiding this comment.
Review by Korbit AI
Korbit automatically attempts to detect when you fix issues in new commits.
| Category | Issue | Status |
|---|---|---|
| Missing temporal range value handling explanation ▹ view | 🧠 Not in standard |
Files scanned
| File Path | Reviewed |
|---|---|
| superset/models/helpers.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.
| def handle_single_value(value: Optional[FilterValue]) -> Optional[FilterValue]: | ||
| if operator == utils.FilterOperator.TEMPORAL_RANGE: | ||
| return value |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
Looks like there are a bunch of CI tasks failing, but we should probably start by running Superset uses Git pre-commit hooks courtesy of pre-commit. To install run the following: Alternatively it is possible to run pre-commit by running pre-commit manually: |
|
Possible duplicate of #33230 |
Code Review Agent Run #73fd41Actionable 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 |
|
Thanks for the contribution. After reviewing the diff more carefully, there's a structural bug that would need to be addressed: the The possible duplicate (#33230) was also closed without merging, so that concern is moot, but the underlying fix here needs another look before it would be safe to merge. |
|
Marking as draft until it an get further attention. |
|
Thanks for the contribution, @Sayan199. As noted in review, the diff has a structural bug — the BOOLEAN branch and the final return value in handle_single_value got dedented out of the intended block — and it's been idle since. Closing this draft; the underlying issue #33206 stays open and we'll pick it back up there (ideally with a regression test). Feel free to reopen a fresh PR if you'd like to continue. |
SUMMARY
Fixes #33206
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
In order to test this, we need to
This should now be able to filter and give results that do match with 21 but also with 21.8 and 25.35
ADDITIONAL INFORMATION