How to fix a data fetching function in python using sql query?

57 Views Asked by At

I have developed a function which uses parametrized sql based on user input to fetch records. However, I am facing a type mismatch problem in the where clause of the query. please help me fix it. Start_Date and End_Date are string stype whereas record_date is datetime64[ns]. The Error is stating the the comparison between record_date and start_date and end_date has a type mismatch.

1

There are 1 best solutions below

0
Alex Merced On

I noticed you tagged Dremio, Dremio doesn't support parameterized queries at the moment (up to version 24), but that should eventually be supported.