orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chunyang-wen <...@git.apache.org>
Subject [GitHub] orc pull request #53: add support for nested column id selection, not only f...
Date Tue, 09 Aug 2016 14:07:18 GMT
GitHub user chunyang-wen opened a pull request:

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

    add support for nested column id selection, not only first level's id 

    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 “struct\<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/53.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 #53
    
----
commit 21ca200c35c21c2ea5a8bb8c395b44510343fa88
Author: wenchunyang <wenchunyang@baidu.com>
Date:   2016-08-09T08:36:54Z

    add support for nested column id selection, not only first level's id

commit bcc91206b8c9f8f84c217112831010fa7e2eb30c
Author: wenchunyang <wenchunyang@baidu.com>
Date:   2016-08-09T08:36:54Z

    add support for nested column id selection, not only first level's id

commit 67852f2dfdef3f5f238b5b94002d5598b95948fd
Author: wenchunyang <wenchunyang@baidu.com>
Date:   2016-08-09T13:56:17Z

    Merge branch 'master' of https://github.com/chunyang-wen/orc

commit f257cf822ee406aedb666037e2b065a95bf2e9b9
Author: wenchunyang <wenchunyang@baidu.com>
Date:   2016-08-09T14:02:54Z

    Resolve confilict

commit f1560ed348837ce6cc63fe69234175c0f9d8e124
Author: wenchunyang <wenchunyang@baidu.com>
Date:   2016-08-09T14:05:16Z

    Merge https://github.com/apache/orc

----


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

Mime
View raw message