-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Time interval "CAST((NOW() + INTERVAL '-40 day')" leads to error #48
Comments
There are a few issues I'm working through before I can get to this. In the meantime, casting |
Ok, thanks for having a look 👍 Unfortunately Metabase (and probably other graphical SQL IDEs) generate the sql query automatically based on what the user selects in the date widget. So there's no easy way to cast now() to timestamp when using their graphical interface. |
Okay, I have a temporary workaround for you. Just run the following: SELECT duckdb_execute('INSTALL icu');
SELECT duckdb_execute('LOAD icu'); And the above query should work. |
Thanks, Devin 😄 |
I am trying out Devin haha! |
When do we have to run that? Only once or every time the server starts or for every session? I just got the same error again and had to run the commands. |
Until we merge this fix, it needs to be run in every session as a workaround. |
@rebasedming what's the consensus for resolving this, auto-installing the |
Ideally we would have it already loaded in the embedded DuckDB provided by duckdb-rs. If that's prohibitive, I think we can use my caching PR to have it installed once when the DuckDB database file is created. |
What
Running this query results in a warning that query can't be pushed down and finally crashes after 20-50 seconds.
This is the error I get:
Why
Metabase filters data like that if you select "Last x days" and this can't be changed there.
The same query runs fine if I call it directly via DuckDB.
The text was updated successfully, but these errors were encountered: