When a variable is integer, DuckDB automatically infers its type as integer. The problem is, when I query this using a Database Query with a WHERE clause (for example, WHERE x > ${value}), with value selected using a range slider, it gives an error after moving the slider many times (for example, about 50 times for a table with 1,000 rows). The error says:
RangeError: Maximum call stack size exceeded.
Interesting thing is, it doesn’t give the error when a variable is float. How can I change a variable type in DuckDB?
Thank you very much for checking this. It seems that the error depends on the browser. It shows up in Safari. I just tried Chrome, and no errors. So strange!
But anyway, it would be great if I can change variable type in DuckDB. Currently, I cannot do certain transformation for integer variables in SQL. For example,