Changed the way about all jdbc catalogs checked for the db or table exists. This is because the original method of checking whether a table exists is to simply list all the tables and then check whether all the table names contain the given table name, which can be a performance problem.
In addition to the above issues, in mysql, it is not possible to create tables with the same table name in different case in default, which can lead to errors like the following
Does this PR introduce any user-facing change?
How was this patch tested?
Check list
[ ] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
Purpose of this pull request
Changed the way about all jdbc catalogs checked for the db or table exists. This is because the original method of checking whether a table exists is to simply list all the tables and then check whether all the table names contain the given table name, which can be a performance problem.
In addition to the above issues, in mysql, it is not possible to create tables with the same table name in different case in default, which can lead to errors like the following![image](https://github.com/user-attachments/assets/316458ef-d832-45d2-814d-57e44ce7c57c)
Does this PR introduce any user-facing change?
How was this patch tested?
Check list
release-note
.