bowenli86 opened a new pull request #8514: [FLINK-12582][table][hive] Alteration APIs in catalogs should check existing object and new object are of the same class URL: https://github.com/apache/flink/pull/8514 ## What is the purpose of the change This PR supports alterations in catalogs to check existing object and new object are of the same class. Most of them currently don't, e.g. you can alter an existing generic table with a new hive table in GenericInMemoryCatalog. ## Brief change log - changed the following alteration API to check existing object and new object are of the same class - HiveCatalog: alterDatabase(), alterTable(), alterFunction() - GenericInMemoryCatalog: alterDatabase(), alterTable(), alterFunction(), alterPartition() ## Verifying this change This change added tests and can be verified as follows: added unit tests `testAlterDb_differentTypedDb()`, `testAlterTable_differentTypedTable()`, `testAlterFunction_differentTypedFunction()` in `CatalogTestBase`, and `testAlterPartition_differentTypedPartition()` in `GenericInMemoryCatalogTest` ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): (no) - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no) - The serializers: (yes / no / don't know) - The runtime per-record code paths (performance sensitive): (no) - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no) - The S3 file system connector: (no) ## Documentation - Does this pull request introduce a new feature? (no) - If yes, how is the feature documented? (not applicable)
---------------------------------------------------------------- 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
