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 5BE67200C3E for ; Tue, 21 Mar 2017 15:32:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5A705160B74; Tue, 21 Mar 2017 14:32:48 +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 92F4F160B68 for ; Tue, 21 Mar 2017 15:32:47 +0100 (CET) Received: (qmail 81752 invoked by uid 500); 21 Mar 2017 14:32:45 -0000 Mailing-List: contact dev-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@arrow.apache.org Delivered-To: mailing list dev@arrow.apache.org Received: (qmail 81717 invoked by uid 99); 21 Mar 2017 14:32:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2017 14:32:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BCF48C09F0 for ; Tue, 21 Mar 2017 14:32:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.548 X-Spam-Level: X-Spam-Status: No, score=-98.548 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id JznL4gEpGtrp for ; Tue, 21 Mar 2017 14:32:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 6543760CEB for ; Tue, 21 Mar 2017 14:32:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 145B7E0458 for ; Tue, 21 Mar 2017 14:32:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id C43EB24D2D for ; Tue, 21 Mar 2017 14:32:41 +0000 (UTC) Date: Tue, 21 Mar 2017 14:32:41 +0000 (UTC) From: "Johan Mabille (JIRA)" To: dev@arrow.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (ARROW-602) C++: Provide iterator access to primitive elements inside a Column/ChunkedArray MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 21 Mar 2017 14:32:48 -0000 [ https://issues.apache.org/jira/browse/ARROW-602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15934712#comment-15934712 ] Johan Mabille edited comment on ARROW-602 at 3/21/17 2:32 PM: -------------------------------------------------------------- I thought I would add this interface to numerical arrays for a start, but I agree it might be complicated to go back if we experience any problem in adding this interface to the other array classes in the future. By the way I guess your first question is adressing the handling of missing values ? Sylvain has done some work on it for xtensor, you might be interested in [https://github.com/QuantStack/xtensor/pull/196]. More generally, what would be the best process for you? I can open a dedicated issue for this topic, so that we can identify all the possible problems and start trying to solve them. Or I can start a draft and we can iterate (or maybe you already started something I can contribute to). I guess this document could go into arrow/cpp/doc, so I may open a PR with an initial draft. was (Author: johanmabille): I thought I would add this interface to numerical arrays for a start, but I agree it might be complicated to go back if we experience any problem in adding this interface to the other array classes in the future. By the way I guess your first question is adressing the handling of missing values ? Sylvain has done some work on it for xtensor, you might be interested in [https://github.com/QuantStack/xtensor/pull/196]. More generally, what would be the best process for you? I can open a dedicated issue for this topic, so that we can identify all the possible problems and start trying to solve them. Or I can start a draft and we can iterate (or maybe you already started something I can contribute to). I guess this document could go into arrow/cpp/doc, so I may open a PR with the initial draft. > C++: Provide iterator access to primitive elements inside a Column/ChunkedArray > ------------------------------------------------------------------------------- > > Key: ARROW-602 > URL: https://issues.apache.org/jira/browse/ARROW-602 > Project: Apache Arrow > Issue Type: Improvement > Components: C++ > Reporter: Uwe L. Korn > Labels: beginner, newbie > > Given a ChunkedArray, an Arrow user must currently iterate over all its chunks and then cast them to their types to extract the primitive memory regions to access the values. A convenient way to access the underlying values would be to offer a function that takes a ChunkedArray and returns a C++ iterator over all elements. > While this may not be the most performant way to access the underlying data, it should have sufficient performance and adds a convenience layer for new users. -- This message was sent by Atlassian JIRA (v6.3.15#6346)