yohengyangyang commented on issue #3741:
URL: https://github.com/apache/iceberg/issues/3741#issuecomment-995691825


   @RussellSpitzer add some log 
   ` private <T> Iterable<CloseableIterable<T>> entries(
         BiFunction<ManifestFile, CloseableIterable<ManifestEntry<DataFile>>, 
CloseableIterable<T>> entryFn) {
       long start = System.currentTimeMillis();
      // ……
       Iterable<CloseableIterable<T>> res = Iterables.transform(
           matchingManifests,
           manifest -> {
             long start2 = System.currentTimeMillis();
             ManifestReader<DataFile> reader = ManifestFiles.read(manifest, io, 
specsById)
                 .filterRows(dataFilter)
                 .filterPartitions(partitionFilter)
                 .caseSensitive(caseSensitive)
                 .select(columns);
   
             CloseableIterable<ManifestEntry<DataFile>> entries = 
reader.entries();
             if (ignoreDeleted) {
               entries = reader.liveEntries();
             }
   
             if (ignoreExisting) {
               entries = CloseableIterable.filter(entries,
                   entry -> entry.status() != ManifestEntry.Status.EXISTING);
             }
   
             if (evaluator != null) {
               entries = CloseableIterable.filter(entries,
                   entry -> evaluator.eval((GenericDataFile) entry.file()));
             }
   
             entries = CloseableIterable.filter(entries, 
manifestEntryPredicate);
             CloseableIterable<T> res2 = entryFn.apply(manifest, entries);
             long end2 = System.currentTimeMillis();
             LOG.info("transform_time: {}", end2 - start2);
             return res2;
           });
       long end = System.currentTimeMillis();
       LOG.info("entries_time: {}", end - start);
       return res;
     }`


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to