Filtering on Boolean columns has a limitation in Snowflake (and possibly other databases) #33235
Open
3 tasks done
Labels
#bug
Bug report
data:connect:snowflake
Related to Snowflake
viz:charts
Namespace | Anything related to viz types
Bug description
In chart creator, I can't apply a filter on a Boolean column (e.g. to just return rows where the column is
True
) when using Snowflake.The generated Snowflake SQL isn't valid, because
IS True
isn't valid in Snowflake. This is the generated SQL:IS
can only be used to evaluate NULL-ness in Snowflake, not for filtering values (read more here and here). I suspect this is also true for some other databases, but I haven't researched thoroughly.The alternative would be to have menu options for
= True
and= False
, for Boolean columns.Version
Preset Cloud // Apache Superset 4.2.0.5
Workarounds
IN
option can be used in combination with and limiting the values toTrue
.IN
. I'm happy to open a separate issue for this if the community would like!= True
.Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: