Metabase query feature for csv tables


I am not able to query this table as it is uploaded from csv

SELECT
CAST("Timestamp" AS DATE) AS "Date",
SUM("Weight (kg)") AS "Total Weight"
FROM
"Foodwastage"
GROUP BY
CAST("Timestamp" AS DATE)
ORDER BY
"Date";