I got an error while using Previous x Days to create chart on Apache Doris using MySQL driver to connect Metabase.
It cause by using now() function , added a number as a parameter : now(6)
Here's the error details errCode = 2, detailMessage = No matching function with signature: now(tinyint(4)).
Here's the sql metabase parse:
SELECT `token_price_daily_all`.`day` AS `day`, `token_price_daily_all`.`on_date` AS `on_date`, `token_price_daily_all`.`token_address` AS `token_address`, `token_price_daily_all`.`chain` AS `chain`, `token_price_daily_all`.`token_symbol` AS `token_symbol`, `token_price_daily_all`.`price` AS `price`
FROM `token_price_daily_all`
WHERE (`token_price_daily_all`.`day` >= date(date_add(now(6), INTERVAL -3 day))
AND `token_price_daily_all`.`day` < date(now(6)))
LIMIT 1048575
@Wade I have no idea which version of Metabase you are using, but it's some custom build. Try using an official release.
If you need Metabase to function with some dialect version of MySQL, then you might need to create your own custom driver instead.