You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "JingsongLi (via GitHub)" <gi...@apache.org> on 2023/03/13 09:06:49 UTC

[GitHub] [flink-table-store] JingsongLi commented on a diff in pull request #595: [FLINK-31412] HiveCatalog rollbacks schema in dfs if it alters table failed

JingsongLi commented on code in PR #595:
URL: https://github.com/apache/flink-table-store/pull/595#discussion_r1133624118


##########
flink-table-store-hive/flink-table-store-hive-catalog/src/main/java/org/apache/flink/table/store/hive/HiveCatalog.java:
##########
@@ -297,13 +297,20 @@ public void alterTable(
         }
 
         try {
+            final SchemaManager schemaManager = schemaManager(identifier);
             // first commit changes to underlying files
             TableSchema schema = schemaManager(identifier).commitChanges(changes);

Review Comment:
   use `schemaManager` directly.



-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org