Dan Hill
SELECT DATETRUNC('day', "timestamp") as mydate, SUM(cost_usd_micros) FROM pinot.default.events_testing GROUP BY mydate;