For almost all alter table DDL operations in catalogOpExecutor, we add table to catalog update if reloadMetadata is true in the end. However for certain sub ddl operations like ADD and DROP partitions, the table to update catalog is performed locally. This Jira is to refactor addTableToCatalogUpdate() and call it from one place for all the sub ddls. This refactoring would be helpful when we introduce code changes of syncing db/table to latest event id from catalogOpExecutor in future.
cc - vihangk1