Open JRII972 opened 5 months ago
Can you share the generated SQL for this query?
Sorry i was in vacation
SELECT date_format(covid.jour, '%%Y-%%m-%%d 00:00') AS "Group by Jour",
avg(covid.tx_prev_hosp) AS "Avg of Tx Prev Hosp"
FROM covid AS covid
GROUP BY date_format(covid.jour, '%%Y-%%m-%%d 00:00')
LIMIT 500
date_format
is the problem
When i try use date column with postgres db, it fail on date format
(psycopg2.errors.UndefinedFunction) function date_format(date, unknown) does not exist
when i check the code, the 'date_format' function is hard coded
insights/insights/doctype/insights_query/insights_assisted_query.py