Closed zhangwl9 closed 4 hours ago
Thanks for filing the issue, seems the databaseExists
call in createDatabase
and dropDatabase
can be suppressed by the subsequent logic, but the databaseExists
in listDatabase
seems can not remove directly, we may need to make sure the FormatCatalog#listTables
respect the java doc and then can remove the databaseExists
Thanks for filing the issue, seems the
databaseExists
call increateDatabase
anddropDatabase
can be suppressed by the subsequent logic, but thedatabaseExists
inlistDatabase
seems can not remove directly, we may need to make sure theFormatCatalog#listTables
respect the java doc and then can remove thedatabaseExists
We add exception handling for NoSuchDatabaseException in 'HudiHadoopCatalog#listTables' and 'MixedCatalog#listTables' methods which are called in 'FormatCatalog#listTables' to eliminate the redundancy of 'databaseExists' in 'CommonUnifiedCatalog#listTables'.
@majin1102 @czy006 could you please take a look at this when you're free, thanks
Search before asking
What would you like to be improved?
Currently, some
databaseExists
checks inCommonUnifiedCatalog
is redundant because the logic can be coverd by the subsequent logic(such asCommonUnifiedCatalog#createDatabase
,CommonUnifiedCatalog#dropDatabase
) , and thedatabaseExists
checks will make a call to the external catalog(eg HiveMetaStore), which may be time-consuming.How should we improve?
Remove redundant 'databaseExists' checks in
CommonUnifiedCatalog
to improve performance.Are you willing to submit PR?
Subtasks
No response
Code of Conduct