```[dfa38aec-e8c1-4718-a8e2-b79c0e27a696] 2025-12-...
# questions-and-troubleshooting
s
Copy code
[dfa38aec-e8c1-4718-a8e2-b79c0e27a696] 2025-12-11T17:19:00+05:30 ERROR metabase.sync.fetch-metadata Error while fetching metadata with 'db-metadata',java.sql.SQLTransientConnectionException: (conn=33557584) Getting syntax error at line 1, column 16. Detail message: No viable statement for input 'SHOW GRANTS FOR CURRENT_USER'.,    at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.createException(ExceptionFactory.java:79),    at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.create(ExceptionFactory.java:158),    at org.mariadb.jdbc.MariaDbStatement.executeExceptionEpilogue(MariaDbStatement.java:262),    at org.mariadb.jdbc.ClientSidePreparedStatement.executeInternal(ClientSidePreparedStatement.java:229),    at org.mariadb.jdbc.ClientSidePreparedStatement.execute(ClientSidePreparedStatement.java:149),    at org.mariadb.jdbc.ClientSidePreparedStatement.executeQuery(ClientSidePreparedStatement.java:163),    at
**********No viable statement for input SHOW GRANTS FOR CURRENT_USER*************** we are using star rocks version: 3.5-latest after recent metabase upgrade we are unable to add DB in metabase or re sync the columns in metabase
k
can you find the exact sql from FE audit log, need to know what sql sent from metabase.
s
@Kevin Cai SHOW GRANTS FOR CURRENT_USER
these are the statements going from metabase
k
ok
it is not a valid sql in starrocks. refer to doc : https://docs.starrocks.io/docs/sql-reference/sql-statements/account-management/SHOW_GRANTS/ may need to submit a ticket to report the incompatibility.
show grants
is good enough for viewing current user's privileges,
s
@Kevin Cai for some users we have restricted access to particular views, in that cases we are facing issues