You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/10/23 05:41:22 UTC

[GitHub] [flink] shouweikun commented on a change in pull request #13716: [FLINK-19706][table-runtime] Add WARN logs when hive table partition …

shouweikun commented on a change in pull request #13716:
URL: https://github.com/apache/flink/pull/13716#discussion_r510623126



##########
File path: flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/filesystem/MetastoreCommitPolicy.java
##########
@@ -45,6 +45,9 @@ public void setMetastore(TableMetaStore metaStore) {
 	public void commit(Context context) throws Exception {
 		LinkedHashMap<String, String> partitionSpec = context.partitionSpec();
 		metaStore.createOrAlterPartition(partitionSpec, context.partitionPath());
+		if (metaStore.getPartition(partitionSpec).isPresent()) {

Review comment:
       Sure, code has been changed following ur suggestion




----------------------------------------------------------------
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:
users@infra.apache.org