Closed hughess closed 2 months ago
what's the intended behaviour here?
throw an error?
or allow the user to have null as a pickable option?
I could see both being helpful for different situations:
I think including nulls is probably not possible with the current inputs setup - if it was in a string column, you’d have to wrap the input in single quotes in your sql, and then the nulls wouldn’t match
I just had troubles with null, and we have a legitimate case where I want null to be one of the selectable options. I also stubled on some issues with the query but AI explained very well to me why I was wrong.
I would want to be able to have null as a value in a combobox (preferable with a human readable label) and that the filter gets created in the correct way:
WHERE (field is null OR field IN (1,2,3,4))
Describe the bug
If the query feeding a dropdown component contains a null value, the input will not be set, even if a default value is supplied.
Steps to Reproduce
Reproducible example below. If
null
is included in theselection
query, the DataTable will not load. If you change that to "def", it will load.