From user-return-875-archive-asf-public=cust-asf.ponee.io@arrow.apache.org Sun Jan 3 00:20:52 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id C1E10180670 for ; Sun, 3 Jan 2021 01:20:52 +0100 (CET) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id 0F25265086 for ; Sun, 3 Jan 2021 00:20:51 +0000 (UTC) Received: (qmail 41815 invoked by uid 500); 3 Jan 2021 00:20:51 -0000 Mailing-List: contact user-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@arrow.apache.org Delivered-To: mailing list user@arrow.apache.org Received: (qmail 41790 invoked by uid 99); 3 Jan 2021 00:20:50 -0000 Received: from spamproc1-he-de.apache.org (HELO spamproc1-he-de.apache.org) (116.203.196.100) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jan 2021 00:20:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamproc1-he-de.apache.org (ASF Mail Server at spamproc1-he-de.apache.org) with ESMTP id 2986D1FF3A1 for ; Sun, 3 Jan 2021 00:20:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-de.apache.org X-Spam-Flag: NO X-Spam-Score: -0.201 X-Spam-Level: X-Spam-Status: No, score=-0.201 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamproc1-he-de.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([116.203.227.195]) by localhost (spamproc1-he-de.apache.org [116.203.196.100]) (amavisd-new, port 10024) with ESMTP id wKVBQhER-ELn for ; Sun, 3 Jan 2021 00:20:49 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::132; helo=mail-lf1-x132.google.com; envelope-from=wesmckinn@gmail.com; receiver= Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id BE2DC7FBC4 for ; Sun, 3 Jan 2021 00:20:49 +0000 (UTC) Received: by mail-lf1-x132.google.com with SMTP id o19so56376349lfo.1 for ; Sat, 02 Jan 2021 16:20:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=gsyasY7UmtIJtIaLa9vYl0CWRV8m/hKMJtqf42gKgbk=; b=A0ziG0ItonPbcBBy7fSTyjedZ3jTZ/AjwOhVIykkaqJpL7m0QLgU4C6xfUwgCI5vy0 RkwaZQMjuzoffF7pKIwAGu5OpeoMdV4FJZ5ymN6TLDvt/k1x7bv0HJBwR9t1ek1fSpNp 4EspbHq1iNKtXuRARQ69z43GdeMkGgL1szQ0PIJGSaAxjkNC5JQwCAc7KXFCmpyR0+IX IMtaTR79shrGLIAKnf7K4wijb5wUv6ibmuk+udjsQLNIdCwpOuU3ivtkYwK7KLy1BN6b C+I7QFRBQaDUmRHtN8jC/bM69h93+cxD6mL49afTN4/RK8u1S7CSxrVzdGZqpi+hldEO 0axw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=gsyasY7UmtIJtIaLa9vYl0CWRV8m/hKMJtqf42gKgbk=; b=XXFw4euGnDDBqvAb+aRCQMHJSXQY8EESeRSGPcmjJ/TXPFZgtnsT/faOoh50tUDj3q D9wQBULJuxnAQGJpTriGHP44Wkbsc7B8r2ne32ofAziYCD6In+TSGAGE0oDuFZ/tl2Rr 0UXvMeY8ow3HiDyKiQOPD9jp077hctXBXK80vPoDo/dCzDA+4kO0BQjKlqtMGiFZXuZ4 IeXT7s8Zljeoh1lnPhsrSSw7YZUGkbXMguxAcxEpJyjrW09Gbqw0h0L5QKAyisgXfTdl liryzX8B2Okv/HfBr12A76ywtgEybsKdQ2Wbcyb4NMn/nuZ2xwQiPbV/iuf8irC68hvO iNuQ== X-Gm-Message-State: AOAM5301RUaI5Fq8ic3cl9iK8ObhHgH7p+e9nmxG09F4rtEkBDIjBKE2 Y9SJRHgLpFNwqAQ+uSeCFTuaZ3cbesrEdyYLKJ0JDf8AZH0EyRgT X-Google-Smtp-Source: ABdhPJwmKZCF1CHBuCLOhdSeprW49PkFiM+6cjatOlS7Njesq0QHXJhUHaS6WacfF0dVNwpjiTKYIrC4dXfvO/kNGOo= X-Received: by 2002:a2e:8602:: with SMTP id a2mr31609343lji.421.1609633248611; Sat, 02 Jan 2021 16:20:48 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Wes McKinney Date: Sat, 2 Jan 2021 18:20:12 -0600 Message-ID: Subject: Re: Sharing a C++-level pointer between Python and R To: user@arrow.apache.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable We can go R to/from Python from an R perspective with reticulate https://arrow.apache.org/docs/r/articles/python.html There are unit tests attesting to this working: https://github.com/apache/arrow/blob/master/r/tests/testthat/test-python.R However, I don't know of anyone trying to get interop from a Python perspective with rpy2; there may be a small amount of plumbing needed to get it working, others may know more. On Sat, Jan 2, 2021 at 5:20 PM Laurent Gautier wrote: > > Hi, > > I am looking at sharing a pointer between Python and R. For example creat= e an Arrow object with Python, perform initial filtering, and then pass a s= hared pointer to R through rpy2 (meaning that an R6 object is created from = this pointer and R package arrow). > > I found in the source a file that suggest thats Python-to-R is either pla= nned or may be even already functional: https://github.com/apache/arrow/blo= b/master/r/src/py-to-r.cpp > However, I did not find documentation about it. > > Would anyone here know more about this? > > Best, > > Laurent > >