[jira] [Commented] (DRILL-2802) Projecting dir[n] by itself results in projecting of all columns

2015-09-03 Thread Victoria Markman (JIRA)

[ 
https://issues.apache.org/jira/browse/DRILL-2802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14729722#comment-14729722
 ] 

Victoria Markman commented on DRILL-2802:
-

Verified fixed in 1.2.0

#Thu Sep 03 00:07:29 UTC 2015
git.commit.id.abbrev=9562391


{code}
0: jdbc:drill:schema=dfs> select dir0 from bigtable limit 1;
+---+
| dir0  |
+---+
| 2015  |
+---+
1 row selected (0.203 seconds)

0: jdbc:drill:schema=dfs> select dir1 from bigtable limit 1;
+---+
| dir1  |
+---+
| 01|
+---+
1 row selected (0.17 seconds)

0: jdbc:drill:schema=dfs> select dir0, dir1 from bigtable limit 1;
+---+---+
| dir0  | dir1  |
+---+---+
| 2015  | 01|
+---+---+
1 row selected (0.204 seconds)

0: jdbc:drill:schema=dfs> select dir0, * from bigtable limit 1;
+---+-++-++---+
| dir0  | a1  |   b1   | c1  | dir00  | dir1  |
+---+-++-++---+
| 2015  | 1   | a  | 2015-01-01  | 2015   | 01|
+---+-++-++---+
1 row selected (0.242 seconds)
{code}

Jinfeng added unit test in 
http://git-wip-us.apache.org/repos/asf/drill/blob/f4bb5353/exec/java-exec/src/test/java/org/apache/drill/TestStarQueries.java
 with plan verification, it is sufficient for this bug.

> Projecting dir[n] by itself results in projecting of all columns
> 
>
> Key: DRILL-2802
> URL: https://issues.apache.org/jira/browse/DRILL-2802
> Project: Apache Drill
>  Issue Type: Bug
>  Components: Query Planning & Optimization
>Affects Versions: 0.9.0
>Reporter: Victoria Markman
>Assignee: Jinfeng Ni
>Priority: Critical
> Fix For: 1.2.0
>
> Attachments: 
> 0002-DRILL-2802-Ensure-project-the-right-columns-in-the-f.patch
>
>
> {code}
> 0: jdbc:drill:schema=dfs> select dir1 from bigtable limit 1;
> +++++
> | a1 | b1 | c1 |dir1|
> +++++
> | 1  | a  | 2015-01-01 | 01 |
> +++++
> 1 row selected (0.189 seconds)
> 0: jdbc:drill:schema=dfs> select dir0 from bigtable limit 1;
> +++++
> | a1 | b1 | c1 |dir0|
> +++++
> | 1  | a  | 2015-01-01 | 2015   |
> +++++
> 1 row selected (0.193 seconds)
> {code}
> In explain plan, I don't see project:
> {code}
> 0: jdbc:drill:schema=dfs> explain plan for select dir0 from bigtable;
> +++
> |text|json|
> +++
> | 00-00Screen
> 00-01  Scan(groupscan=[ParquetGroupScan [entries=[ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/4_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/3_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/5_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/1_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/2_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/02/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/03/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/04/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2016/01/parquet.file], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2016/parquet.file]], 
> selectionRoot=/test/bigtable, numFiles=11, columns=[`dir0`]]])
> {code}
> If you project both dir0 and dir1, both columns are projected with the 
> correct result:
> {code}
> 0: jdbc:drill:schema=dfs> select dir0, dir1 from bigtable;
> +++
> |dir0|dir1|
> +++
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> {code}
> {code}
> [Wed Apr 15 14:09:47 root@/mapr/vmarkman.cluster.com/test/bigtable ] # ls -R
> .:
> 2015  2016
> ./2015:
> 01  02  03  04
> ./2015/01:
> 0_0_0.parquet  1_0_0.parquet  2_0_0.parquet  3_0_0.parquet  4_0_0.parquet  
> 5_0_0.parquet
> ./2015/02:
> 0_0_0.parquet
> ./2015/03:
> 0_0_0.parquet
> ./2015/04:
> 0_0_0.parquet
> ./2016:
> 01  parquet.file
> ./2016/01:
> parquet.file
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (DRILL-2802) Projecting dir[n] by itself results in projecting of all columns

2015-07-07 Thread Venki Korukanti (JIRA)

[ 
https://issues.apache.org/jira/browse/DRILL-2802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14617155#comment-14617155
 ] 

Venki Korukanti commented on DRILL-2802:


+1

> Projecting dir[n] by itself results in projecting of all columns
> 
>
> Key: DRILL-2802
> URL: https://issues.apache.org/jira/browse/DRILL-2802
> Project: Apache Drill
>  Issue Type: Bug
>  Components: Query Planning & Optimization
>Affects Versions: 0.9.0
>Reporter: Victoria Markman
>Assignee: Venki Korukanti
>Priority: Critical
> Fix For: 1.2.0
>
> Attachments: 
> 0002-DRILL-2802-Ensure-project-the-right-columns-in-the-f.patch
>
>
> {code}
> 0: jdbc:drill:schema=dfs> select dir1 from bigtable limit 1;
> +++++
> | a1 | b1 | c1 |dir1|
> +++++
> | 1  | a  | 2015-01-01 | 01 |
> +++++
> 1 row selected (0.189 seconds)
> 0: jdbc:drill:schema=dfs> select dir0 from bigtable limit 1;
> +++++
> | a1 | b1 | c1 |dir0|
> +++++
> | 1  | a  | 2015-01-01 | 2015   |
> +++++
> 1 row selected (0.193 seconds)
> {code}
> In explain plan, I don't see project:
> {code}
> 0: jdbc:drill:schema=dfs> explain plan for select dir0 from bigtable;
> +++
> |text|json|
> +++
> | 00-00Screen
> 00-01  Scan(groupscan=[ParquetGroupScan [entries=[ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/4_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/3_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/5_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/1_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/2_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/02/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/03/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/04/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2016/01/parquet.file], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2016/parquet.file]], 
> selectionRoot=/test/bigtable, numFiles=11, columns=[`dir0`]]])
> {code}
> If you project both dir0 and dir1, both columns are projected with the 
> correct result:
> {code}
> 0: jdbc:drill:schema=dfs> select dir0, dir1 from bigtable;
> +++
> |dir0|dir1|
> +++
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> {code}
> {code}
> [Wed Apr 15 14:09:47 root@/mapr/vmarkman.cluster.com/test/bigtable ] # ls -R
> .:
> 2015  2016
> ./2015:
> 01  02  03  04
> ./2015/01:
> 0_0_0.parquet  1_0_0.parquet  2_0_0.parquet  3_0_0.parquet  4_0_0.parquet  
> 5_0_0.parquet
> ./2015/02:
> 0_0_0.parquet
> ./2015/03:
> 0_0_0.parquet
> ./2015/04:
> 0_0_0.parquet
> ./2016:
> 01  parquet.file
> ./2016/01:
> parquet.file
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (DRILL-2802) Projecting dir[n] by itself results in projecting of all columns

2015-07-07 Thread Jinfeng Ni (JIRA)

[ 
https://issues.apache.org/jira/browse/DRILL-2802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14617074#comment-14617074
 ] 

Jinfeng Ni commented on DRILL-2802:
---

[~venki387], could you please review the patch? Thanks!



> Projecting dir[n] by itself results in projecting of all columns
> 
>
> Key: DRILL-2802
> URL: https://issues.apache.org/jira/browse/DRILL-2802
> Project: Apache Drill
>  Issue Type: Bug
>  Components: Query Planning & Optimization
>Affects Versions: 0.9.0
>Reporter: Victoria Markman
>Assignee: Jinfeng Ni
>Priority: Critical
> Fix For: 1.2.0
>
> Attachments: 
> 0002-DRILL-2802-Ensure-project-the-right-columns-in-the-f.patch
>
>
> {code}
> 0: jdbc:drill:schema=dfs> select dir1 from bigtable limit 1;
> +++++
> | a1 | b1 | c1 |dir1|
> +++++
> | 1  | a  | 2015-01-01 | 01 |
> +++++
> 1 row selected (0.189 seconds)
> 0: jdbc:drill:schema=dfs> select dir0 from bigtable limit 1;
> +++++
> | a1 | b1 | c1 |dir0|
> +++++
> | 1  | a  | 2015-01-01 | 2015   |
> +++++
> 1 row selected (0.193 seconds)
> {code}
> In explain plan, I don't see project:
> {code}
> 0: jdbc:drill:schema=dfs> explain plan for select dir0 from bigtable;
> +++
> |text|json|
> +++
> | 00-00Screen
> 00-01  Scan(groupscan=[ParquetGroupScan [entries=[ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/4_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/3_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/5_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/1_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/2_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/02/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/03/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/04/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2016/01/parquet.file], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2016/parquet.file]], 
> selectionRoot=/test/bigtable, numFiles=11, columns=[`dir0`]]])
> {code}
> If you project both dir0 and dir1, both columns are projected with the 
> correct result:
> {code}
> 0: jdbc:drill:schema=dfs> select dir0, dir1 from bigtable;
> +++
> |dir0|dir1|
> +++
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> {code}
> {code}
> [Wed Apr 15 14:09:47 root@/mapr/vmarkman.cluster.com/test/bigtable ] # ls -R
> .:
> 2015  2016
> ./2015:
> 01  02  03  04
> ./2015/01:
> 0_0_0.parquet  1_0_0.parquet  2_0_0.parquet  3_0_0.parquet  4_0_0.parquet  
> 5_0_0.parquet
> ./2015/02:
> 0_0_0.parquet
> ./2015/03:
> 0_0_0.parquet
> ./2015/04:
> 0_0_0.parquet
> ./2016:
> 01  parquet.file
> ./2016/01:
> parquet.file
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (DRILL-2802) Projecting dir[n] by itself results in projecting of all columns

2015-07-07 Thread Jinfeng Ni (JIRA)

[ 
https://issues.apache.org/jira/browse/DRILL-2802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14617062#comment-14617062
 ] 

Jinfeng Ni commented on DRILL-2802:
---

Two places seem to need fix for this incorrect query result issue.

1) The execution side (Parquet Reader) seems to ignore the columns list in the 
query plan, and put * column in stead, which lead to all the regular columns in 
the final query result.

{code}
Scan(groupscan=[ParquetGroupScan [entries=[ReadEntryWithPath 
[path=maprfs:/test/bigtable/2015/01/4_0_0.parquet], . 
selectionRoot=/test/bigtable, numFiles=11, columns=[`dir0`]]])
{code}

2) Even if Parquet Reader return all the regular columns, plus dir0, dir1,  if 
the query planner inserts a final Project to get the desired columns, the query 
will still get the correct result.  For now, the query planner did not do that 
if only one column is requested. That explains why " select dir0 " would 
produce wrong result, while "select dir0, dir1" would get correct result.

{code}
 explain plan for select dir0 from parquet limit 1;

Screen
00-01  SelectionVectorRemover
00-02Limit(fetch=[1])
00-03  Scan
{code}

{code}
explain plan for select dir0, dir1 from parquet limit 1;

Screen
00-01  Project(dir0=[$0], dir1=[$1])
00-02SelectionVectorRemover
00-03  Limit(fetch=[1])
00-04Scan
{code}

Once query planner fixes the issue by adding the final Project, the Parquet 
Reader issue becomes performance-related issue, since it's reading more than 
necessary columns, which will be pruned out in the final Project. ( 
Essentially, the project pushdown does not work, in this case). 

I'm going to use this JIRA to fix the planner side.  We may need file another 
JIRA for the Parquet Reader issue.


> Projecting dir[n] by itself results in projecting of all columns
> 
>
> Key: DRILL-2802
> URL: https://issues.apache.org/jira/browse/DRILL-2802
> Project: Apache Drill
>  Issue Type: Bug
>  Components: Query Planning & Optimization
>Affects Versions: 0.9.0
>Reporter: Victoria Markman
>Assignee: Jinfeng Ni
>Priority: Critical
> Fix For: 1.2.0
>
>
> {code}
> 0: jdbc:drill:schema=dfs> select dir1 from bigtable limit 1;
> +++++
> | a1 | b1 | c1 |dir1|
> +++++
> | 1  | a  | 2015-01-01 | 01 |
> +++++
> 1 row selected (0.189 seconds)
> 0: jdbc:drill:schema=dfs> select dir0 from bigtable limit 1;
> +++++
> | a1 | b1 | c1 |dir0|
> +++++
> | 1  | a  | 2015-01-01 | 2015   |
> +++++
> 1 row selected (0.193 seconds)
> {code}
> In explain plan, I don't see project:
> {code}
> 0: jdbc:drill:schema=dfs> explain plan for select dir0 from bigtable;
> +++
> |text|json|
> +++
> | 00-00Screen
> 00-01  Scan(groupscan=[ParquetGroupScan [entries=[ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/4_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/3_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/5_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/1_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/2_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/02/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/03/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/04/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2016/01/parquet.file], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2016/parquet.file]], 
> selectionRoot=/test/bigtable, numFiles=11, columns=[`dir0`]]])
> {code}
> If you project both dir0 and dir1, both columns are projected with the 
> correct result:
> {code}
> 0: jdbc:drill:schema=dfs> select dir0, dir1 from bigtable;
> +++
> |dir0|dir1|
> +++
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> {code}
> {code}
> [Wed Apr 15 14:09:47 root@/mapr/vmarkman.cluster.com/test/bigtable ] # ls -R
> .:
> 2015  2016
> ./2015:
> 01  02  03  04
> ./2015/01

[jira] [Commented] (DRILL-2802) Projecting dir[n] by itself results in projecting of all columns

2015-07-02 Thread Jinfeng Ni (JIRA)

[ 
https://issues.apache.org/jira/browse/DRILL-2802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612504#comment-14612504
 ] 

Jinfeng Ni commented on DRILL-2802:
---

Upgraded to Critical, since it's wrong result.

Checked the plan, seems it's valid. The cause of the problem might be in 
execution side. I'll do follow-up debug.



> Projecting dir[n] by itself results in projecting of all columns
> 
>
> Key: DRILL-2802
> URL: https://issues.apache.org/jira/browse/DRILL-2802
> Project: Apache Drill
>  Issue Type: Bug
>  Components: Query Planning & Optimization
>Affects Versions: 0.9.0
>Reporter: Victoria Markman
>Assignee: Jinfeng Ni
>Priority: Critical
> Fix For: 1.2.0
>
>
> {code}
> 0: jdbc:drill:schema=dfs> select dir1 from bigtable limit 1;
> +++++
> | a1 | b1 | c1 |dir1|
> +++++
> | 1  | a  | 2015-01-01 | 01 |
> +++++
> 1 row selected (0.189 seconds)
> 0: jdbc:drill:schema=dfs> select dir0 from bigtable limit 1;
> +++++
> | a1 | b1 | c1 |dir0|
> +++++
> | 1  | a  | 2015-01-01 | 2015   |
> +++++
> 1 row selected (0.193 seconds)
> {code}
> In explain plan, I don't see project:
> {code}
> 0: jdbc:drill:schema=dfs> explain plan for select dir0 from bigtable;
> +++
> |text|json|
> +++
> | 00-00Screen
> 00-01  Scan(groupscan=[ParquetGroupScan [entries=[ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/4_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/3_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/5_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/1_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/2_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/02/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/03/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/04/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2016/01/parquet.file], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2016/parquet.file]], 
> selectionRoot=/test/bigtable, numFiles=11, columns=[`dir0`]]])
> {code}
> If you project both dir0 and dir1, both columns are projected with the 
> correct result:
> {code}
> 0: jdbc:drill:schema=dfs> select dir0, dir1 from bigtable;
> +++
> |dir0|dir1|
> +++
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> {code}
> {code}
> [Wed Apr 15 14:09:47 root@/mapr/vmarkman.cluster.com/test/bigtable ] # ls -R
> .:
> 2015  2016
> ./2015:
> 01  02  03  04
> ./2015/01:
> 0_0_0.parquet  1_0_0.parquet  2_0_0.parquet  3_0_0.parquet  4_0_0.parquet  
> 5_0_0.parquet
> ./2015/02:
> 0_0_0.parquet
> ./2015/03:
> 0_0_0.parquet
> ./2015/04:
> 0_0_0.parquet
> ./2016:
> 01  parquet.file
> ./2016/01:
> parquet.file
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (DRILL-2802) Projecting dir[n] by itself results in projecting of all columns

2015-04-16 Thread Victoria Markman (JIRA)

[ 
https://issues.apache.org/jira/browse/DRILL-2802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14498364#comment-14498364
 ] 

Victoria Markman commented on DRILL-2802:
-

thank you for fixing the comma, it looked wrong to me :)

On Thu, Apr 16, 2015 at 10:27 AM, Daniel Barclay (Drill) (JIRA) <



> Projecting dir[n] by itself results in projecting of all columns
> 
>
> Key: DRILL-2802
> URL: https://issues.apache.org/jira/browse/DRILL-2802
> Project: Apache Drill
>  Issue Type: Bug
>  Components: Query Planning & Optimization
>Affects Versions: 0.9.0
>Reporter: Victoria Markman
>Assignee: Jinfeng Ni
>
> {code}
> 0: jdbc:drill:schema=dfs> select dir1 from bigtable limit 1;
> +++++
> | a1 | b1 | c1 |dir1|
> +++++
> | 1  | a  | 2015-01-01 | 01 |
> +++++
> 1 row selected (0.189 seconds)
> 0: jdbc:drill:schema=dfs> select dir0 from bigtable limit 1;
> +++++
> | a1 | b1 | c1 |dir0|
> +++++
> | 1  | a  | 2015-01-01 | 2015   |
> +++++
> 1 row selected (0.193 seconds)
> {code}
> In explain plan, I don't see project:
> {code}
> 0: jdbc:drill:schema=dfs> explain plan for select dir0 from bigtable;
> +++
> |text|json|
> +++
> | 00-00Screen
> 00-01  Scan(groupscan=[ParquetGroupScan [entries=[ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/4_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/3_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/5_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/1_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/2_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/01/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/02/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/03/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2015/04/0_0_0.parquet], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2016/01/parquet.file], ReadEntryWithPath 
> [path=maprfs:/test/bigtable/2016/parquet.file]], 
> selectionRoot=/test/bigtable, numFiles=11, columns=[`dir0`]]])
> {code}
> If you project both dir0 and dir1, both columns are projected with the 
> correct result:
> {code}
> 0: jdbc:drill:schema=dfs> select dir0, dir1 from bigtable;
> +++
> |dir0|dir1|
> +++
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> | 2015   | 01 |
> {code}
> {code}
> [Wed Apr 15 14:09:47 root@/mapr/vmarkman.cluster.com/test/bigtable ] # ls -R
> .:
> 2015  2016
> ./2015:
> 01  02  03  04
> ./2015/01:
> 0_0_0.parquet  1_0_0.parquet  2_0_0.parquet  3_0_0.parquet  4_0_0.parquet  
> 5_0_0.parquet
> ./2015/02:
> 0_0_0.parquet
> ./2015/03:
> 0_0_0.parquet
> ./2015/04:
> 0_0_0.parquet
> ./2016:
> 01  parquet.file
> ./2016/01:
> parquet.file
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)