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

    https://github.com/apache/drill/pull/749#discussion_r102827651
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/columnreaders/VarLenBinaryReader.java
 ---
    @@ -70,33 +87,21 @@ public long readFields(long recordsToReadInThisPass, 
ColumnReader<?> firstColumn
         return recordsReadInCurrentPass;
       }
     
    -
       private long determineSizesSerial(long recordsToReadInThisPass) throws 
IOException {
    -    int lengthVarFieldsInCurrentRecord = 0;
    -    boolean exitLengthDeterminingLoop = false;
    -    long totalVariableLengthData = 0;
    -    long recordsReadInCurrentPass = 0;
    -    do {
    +
    +    int recordsReadInCurrentPass = 0;
    +    top: do {
           for (VarLengthColumn<?> columnReader : columns) {
    -        if (!exitLengthDeterminingLoop) {
    -          exitLengthDeterminingLoop =
    -              columnReader.determineSize(recordsReadInCurrentPass, 
lengthVarFieldsInCurrentRecord);
    -        } else {
    -          break;
    +        // Return status is "done reading", meaning stop if true.
    +        if (columnReader.determineSize(recordsReadInCurrentPass, 0 /* 
unused */ )) {
    --- End diff --
    
    why not remove the unused parameter ?


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