[explore] When switching from Simple to Custom SQL for a filter, it translates INT to string #12293
Closed
2 of 3 tasks
Labels
!deprecated-label:bug
Deprecated label - Use #bug instead
explore:filter
Related to filters in Explore
hold!
On hold
Simple SQL correctly encodes the values as INTegers. and technically it's displaying incorrectly
views IN ('5', '10')
even though it's encoded correctly and the query is working - therefore this is a minor issue but can confuse users.Expected results
Displayed as integer in the Custom SQL box.
Actual results
Transforms into string in the Custom SQL box.
Screenshots
Filter:

Generated SQL Query

How to reproduce the bug
Environment
(please complete the following information):
master
python --version
node -v
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
This has been introduced a while back - some time in September, but user consider it a feature request, not a bug.
The text was updated successfully, but these errors were encountered: