Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 27165200B61 for ; Tue, 9 Aug 2016 10:49:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 25BB9160AB0; Tue, 9 Aug 2016 08:49:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 93AE3160AAD for ; Tue, 9 Aug 2016 10:49:21 +0200 (CEST) Received: (qmail 78359 invoked by uid 500); 9 Aug 2016 08:49:19 -0000 Mailing-List: contact dev-help@orc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@orc.apache.org Delivered-To: mailing list dev@orc.apache.org Received: (qmail 77408 invoked by uid 99); 9 Aug 2016 08:49:18 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2016 08:49:18 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CA14EE1170; Tue, 9 Aug 2016 08:49:18 +0000 (UTC) From: chunyang-wen To: dev@orc.apache.org Reply-To: dev@orc.apache.org Message-ID: Subject: [GitHub] orc pull request #52: add support for nested column id selection, not only f... Content-Type: text/plain Date: Tue, 9 Aug 2016 08:49:18 +0000 (UTC) archived-at: Tue, 09 Aug 2016 08:49:22 -0000 GitHub user chunyang-wen opened a pull request: https://github.com/apache/orc/pull/52 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". 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>". 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/52.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 #52 ---- commit 21ca200c35c21c2ea5a8bb8c395b44510343fa88 Author: wenchunyang Date: 2016-08-09T08:36:54Z add support for nested column id selection, not only first level's id ---- --- 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. ---