Github user sudheeshkatkam commented on a diff in the pull request:

    https://github.com/apache/drill/pull/723#discussion_r97903876
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/columnreaders/AsyncPageReader.java
 ---
    @@ -176,12 +202,29 @@ private DrillBuf decompress(PageHeader pageHeader, 
DrillBuf compressedData) {
         return pageDataBuf;
       }
     
    -  @Override protected void nextInternal() throws IOException {
    +  @Override
    +  protected void nextInternal() throws IOException {
         ReadStatus readStatus = null;
    +    String name = parentColumnReader.columnChunkMetaData.toString();
         try {
           Stopwatch timer = Stopwatch.createStarted();
    -      readStatus = asyncPageRead.get();
    +      
parentColumnReader.parentReader.getOperatorContext().getStats().startWait();
    +      Future<Boolean> f = asyncPageRead.poll();
    +      Boolean b = f.get(); // get the result of execution
    --- End diff --
    
    collapse two lines to `asyncPageRead.poll().get();`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to