Open onlyjackfrost opened 4 months ago
Thanks @onlyjackfrost report this. I tried something similar with your case but I found it work well
SELECT COUNT("custkey") "customer_count"
FROM
"Customer"
WHERE (("totalprice" > 3000) AND (EXTRACT(MONTH FROM current_date) = '7'))
Which version of the ibis server are you using? I noticed that sqlglot recently fixed many issues related to ClickHouse date functions. Perhaps upgrading will resolve this issue for you.
The rewritten sql contains incorrect current_data function usage
The
current_date
in the last line should becurrent_data()