Closed ylq5126 closed 1 year ago
We cannot filter of aggregate on any datetime field (on Trino Catalogs only) in the last version using Metabase UI (Question), while native query is OK yet.
The error:
Wrong number of args (1) passed to: metabase.query-processor.timezone/report-timezone-id-if-supported
I receive the same error with metabase 0.47.X. when filtering any date/timestamp field. Maybe it as something to do with this https://www.metabase.com/docs/latest/developers-guide/driver-changelog
My Trino installlation have multiples types of catalog SQLServer and MySQL. But the query doesn't pass metabase because the Trino Web UI don't show any running query.
I receive the same error message when in the metabase query wizard (after added a date filter...) i click the button to view the raw SQL query... the popup contain the error : wrong number of args (1) ....
Metabase is configure with America/New_York for timezone reporting
I was finally able to reproduce this issue. Let me look at this.
@marcpearson the deprecated API mentioned in the link you gave have actually nothing to do with this error. For some reason the Metabase report-timezone-id-if-supported
API has changed and I cannot find any documentation about it.
It's still useful information as some API will be removed with Metabase 0.50.0.
I try to show when bug appears.
the native query run correctly:
but when change filter to UI variable:
@marcpearson the deprecated API mentioned in the link you gave have actually nothing to do with this error. For some reason the Metabase
report-timezone-id-if-supported
API has changed and I cannot find any documentation about it.It's still useful information as some API will be removed with Metabase 0.50.0.
Filtering on date-time column is a very useful use-case and releasing 0.50 version is not so soon. Any other solution?
@MohsenIT Metabase 0.50 has nothing to do with the current error. I am working on a fix for the datetime filter.
Any development for the fix ...the pull request seem to be stalled with failing tests
It turns out that the upgrade to 0.47.x is more complex than expected, as more than one API changed with that version. Working to understand why are the tests failing now.
@lpoulain Thanks for your follow up. Is there any good news about resolving this problem? We have daily reporting this issue from our users (they cannot filter date from metabase UI). At first, we try to revert Metabase x.47 update, but reverting caused several other issues. The only way we have now is to solve this metabase-driver issue.
@MohsenIT I believe I was able to fix the issue. The PR is in its review stage right now.
The Metabase Driver 4.0.0 (which contains the fix for this issue) has been released.
Thank you very much. Very appreciate
Pas de problème ;-)
I wanted to express my gratitude for your support . Thanks a lot.
metabase x.47 timestamp field not support