Vitor-Avila commented on code in PR #33296:
URL: https://github.com/apache/superset/pull/33296#discussion_r2110317263
##########
superset/jinja_context.py:
##########
@@ -378,7 +378,16 @@ def get_filters(self, column: str, remove_filter: bool =
False) -> list[Filter]:
flt.get("expressionType") == "SIMPLE"
and flt.get("clause") == "WHERE"
and flt.get("subject") == column
- and val
+ and (
+ val
+ or
+ # IS_NULL and IS_NOT_NULL operators do not have a value
+ op
+ in (
+ FilterOperator.IS_NULL.value,
+ FilterOperator.IS_NOT_NULL.value,
+ )
+ )
Review Comment:
hmm what do you think about this? I noticed the convo with Korbit too.
``` python
and (
val
# IS_NULL and IS_NOT_NULL operators do not have a value
or op in (
FilterOperator.IS_NULL.value,
FilterOperator.IS_NOT_NULL.value,
)
)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]