Skip to content

Commit

Permalink
DRILL-3441: fix indefinite loop problem in CompliantTextRecordReader#…
Browse files Browse the repository at this point in the history
…isStarQuery

closes #82
  • Loading branch information
Hanifi Gunes committed Jul 8, 2015
1 parent 8f3dc0d commit 3e83b34
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,15 @@ public CompliantTextRecordReader(FileSplit split, DrillFileSystem dfs, FragmentC
// checks to see if we are querying all columns(star) or individual columns
@Override
public boolean isStarQuery() {
if(settings.isUseRepeatedVarChar()){
if(settings.isUseRepeatedVarChar()) {
return super.isStarQuery() || Iterables.tryFind(getColumns(), new Predicate<SchemaPath>() {
@Override
public boolean apply(@Nullable SchemaPath path) {
return path.equals(RepeatedVarCharOutput.COLUMNS);
}
}).isPresent();
}else{
return isStarQuery();
}
return super.isStarQuery();
}

/**
Expand Down

0 comments on commit 3e83b34

Please sign in to comment.