ihuzenko commented on a change in pull request #1810: DRILL-7271: Refactor
Metadata interfaces and classes to contain all needed information for the File
based Metastore
URL: https://github.com/apache/drill/pull/1810#discussion_r296215883
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/AbstractParquetGroupScan.java
##########
@@ -414,6 +431,14 @@ public void modifyFileSelection(FileSelection selection) {
}
partitions = newPartitions;
+ Map<Path, SegmentMetadata> newSegments = new HashMap<>();
+ if (!getSegmentsMetadata().isEmpty()) {
+ this.segments = getSegmentsMetadata().entrySet().stream()
+ .filter(entry -> fileSet.contains(entry.getKey()))
+ .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
+ }
+ segments = newSegments;
Review comment:
```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:
[email protected]
With regards,
Apache Git Services