In #2433 , we use simple catalog name in Trino connector. In that case, when we execute SHOW CATALOGS in Trino, it returns the original catalog names in Trino (without {metalake}. prefix).
But in com.datastrato.gravitino.integration.test.container.TrinoContainer#checkSyncCatalogFromGravitino, we use format("SHOW CATALOGS LIKE '%s.%s'", metalakeName, catalogName) to match the result of the execution, which means this method will always return false. Besides, we never verify the return value of this method where it is called, so the current test can still be executed successfully.
Error message and/or stacktrace
N/A
How to reproduce
Use format("SHOW CATALOGS LIKE '%s'", catalogName) instead, and verify the return value of this method where it is called.
Version
main branch
Describe what's wrong
In #2433 , we use simple catalog name in Trino connector. In that case, when we execute
SHOW CATALOGS
in Trino, it returns the original catalog names in Trino (without{metalake}.
prefix).But in
com.datastrato.gravitino.integration.test.container.TrinoContainer#checkSyncCatalogFromGravitino
, we useformat("SHOW CATALOGS LIKE '%s.%s'", metalakeName, catalogName)
to match the result of the execution, which means this method will always returnfalse
. Besides, we never verify the return value of this method where it is called, so the current test can still be executed successfully.Error message and/or stacktrace
N/A
How to reproduce
Use
format("SHOW CATALOGS LIKE '%s'", catalogName)
instead, and verify the return value of this method where it is called.Additional context
No response