diff options
author | Steven Phillips <sphillips@maprtech.com> | 2014-09-09 02:00:56 -0700 |
---|---|---|
committer | Aditya Kishore <aditya@maprtech.com> | 2014-09-11 19:24:08 -0700 |
commit | 00431d2c87040e8f5e79ab09753c20e73b56744e (patch) | |
tree | ceb3a926c079da9e038ef83cca00a1ec984f5207 /exec/java-exec/src | |
parent | caf2329f415bb25a2e1deb4736186e0377e63203 (diff) |
DRILL-1392: Include partition columns in star queries
Diffstat (limited to 'exec/java-exec/src')
-rw-r--r-- | exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/easy/EasyFormatPlugin.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/easy/EasyFormatPlugin.java b/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/easy/EasyFormatPlugin.java index d1923a500..366904478 100644 --- a/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/easy/EasyFormatPlugin.java +++ b/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/easy/EasyFormatPlugin.java @@ -39,6 +39,7 @@ import org.apache.drill.exec.physical.impl.WriterRecordBatch; import org.apache.drill.exec.proto.UserBitShared.CoreOperatorType; import org.apache.drill.exec.record.RecordBatch; import org.apache.drill.exec.server.DrillbitContext; +import org.apache.drill.exec.store.AbstractRecordReader; import org.apache.drill.exec.store.RecordReader; import org.apache.drill.exec.store.RecordWriter; import org.apache.drill.exec.store.StoragePluginOptimizerRule; @@ -124,7 +125,7 @@ public abstract class EasyFormatPlugin<T extends FormatPluginConfig> implements List<Integer> selectedPartitionColumns = Lists.newArrayList(); boolean selectAllColumns = false; - if (columns == null || columns.size() == 0) { + if (AbstractRecordReader.isStarQuery(columns) || columns == null || columns.size() == 0) { selectAllColumns = true; } else { List<SchemaPath> newColumns = Lists.newArrayList(); |