LiShuMing opened a new pull request #3631: [CARBONDATA-3696] Avoid list db's all Tables to check table exists in the db URL: https://github.com/apache/carbondata/pull/3631 ### Why is this PR needed? I found a lot of `listTables` of the db to check if table exists like this: ``` sparkSession.sessionState.catalog.listTables(databaseName) .exists(_.table.equalsIgnoreCase(tableName) ``` This may affect performances if there are lots of tables in one database. In `spark`, we can check this by `tableExists` function. ### What changes were proposed in this PR? use `exits(db, table)` to replace `iterate tables in a db`. ### Does this PR introduce any user interface change? - No ### Is any new testcase added? - No
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
