You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@orc.apache.org by chunyang-wen <gi...@git.apache.org> on 2016/08/10 02:09:22 UTC

[GitHub] orc pull request #54: add support for nested column id selection

GitHub user chunyang-wen opened a pull request:

    https://github.com/apache/orc/pull/54

    add support for nested column id selection

    Currently, orc c++ ReaderOptions only supports first level's id selection. It is suitable for a flat data structure such as "struct\<int1:int, d1:double, t1:timestamp, d2:double\>". The column id is: 0(root type), 1(int1), 2(d1), 3(t1), 4(d2). We can choose any combinations of 1,2,3,4.
    
    But if orc file's schema has different levels of nested types, the include function in ReaderOptions may not  work properly. If the schema is \u201cstruct\<int1:int, s1: struct\<d1:double, t1:timestamp, d2:doulbe\>\>".
    
    We can only select combination of 1(int1), 2(s1). Selecting other column id will get an exception thrown.
    
    In this patch, nested column id is supported. We can selected any column, if one column is selected, its path to the root will also be selected in order to create the reader.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/chunyang-wen/orc master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/orc/pull/54.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #54
    
----
commit a28c3ec047161eb4cc833089749d976fbafaff08
Author: wenchunyang <we...@baidu.com>
Date:   2016-08-10T02:04:21Z

    add support for nested column id selection

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] orc pull request #54: ORC-92 add support for nested column id selection

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/orc/pull/54


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---