empcl commented on code in PR #20376:
URL: https://github.com/apache/flink/pull/20376#discussion_r932119305
##########
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/connectors/hive/read/HivePartitionFetcherContextBase.java:
##########
@@ -137,21 +133,17 @@ public List<ComparablePartitionValue>
getComparablePartitionValueList() throws E
}
break;
case CREATE_TIME:
+ Map<List<String>, Long> partValuesToCreateTime = new
HashMap<>();
partitionNames =
metaStoreClient.listPartitionNames(
tablePath.getDatabaseName(),
tablePath.getObjectName(),
Short.MAX_VALUE);
- List<String> newNames =
- partitionNames.stream()
- .filter(
- n ->
-
!partValuesToCreateTime.containsKey(
-
extractPartitionValues(n)))
- .collect(Collectors.toList());
List<Partition> newPartitions =
Review Comment:
OK, thanks. I have modified the variable names to be more realistic.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]