From user-return-549-archive-asf-public=cust-asf.ponee.io@arrow.apache.org Sat Jul 25 01:47:59 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mailroute1-lw-us.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 1689C18037A for ; Sat, 25 Jul 2020 03:47:59 +0200 (CEST) Received: from mail.apache.org (localhost [127.0.0.1]) by mailroute1-lw-us.apache.org (ASF Mail Server at mailroute1-lw-us.apache.org) with SMTP id AD38C127EAB for ; Sat, 25 Jul 2020 01:47:57 +0000 (UTC) Received: (qmail 59648 invoked by uid 500); 25 Jul 2020 01:47:56 -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 59638 invoked by uid 99); 25 Jul 2020 01:47:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jul 2020 01:47:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3193E1A40CE for ; Sat, 25 Jul 2020 01:47:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.699 X-Spam-Level: X-Spam-Status: No, score=-0.699 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, HTML_MESSAGE=0.2, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=me.com Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id NZS7-pmxF8Ym for ; Sat, 25 Jul 2020 01:47:54 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.63.169; helo=st43p00im-zteg10071901.me.com; envelope-from=tazimmerman@me.com; receiver= Received: from st43p00im-zteg10071901.me.com (st43p00im-zteg10071901.me.com [17.58.63.169]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 8AB4ABE32D for ; Sat, 25 Jul 2020 01:47:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1595641667; bh=C9gDvrKR74/gL2Ed4gIYaFn+/6F3Who0LJvCk7BFPcE=; h=Content-Type:From:Subject:Date:Message-Id:To; b=YVKs0czhI6Rcxq7ALf9ZRDc0kIO6rP7boVpSyf+ih03eRrOwW7bFde4rq8Xrbh6Qq 1fnRmxz31FR1qcQMZl0GO0mLDo/1xGGIy/6XJrINnN9P0BIrZUiL0mTYG4CpdoQiw6 pDbq4v0wRLFeslFuoLeZDMYDTrwn/4EZ+tAROJR5J4N8slaMai1vGgNHIhP01hQvbH XOd6IWninC3MitXAH6UeTyDL2PgTjTVCSdB9iqCIcDaI/ezMuP8OVfPDvF6rA0oixe joM9Lu6f8xryDfUqrxa6kWiEcppUB8Z1kgPq2VVHMUb7/32PB4DmwAM3rP53RWlZcv iv6QrCrVuo33A== Received: from [192.168.1.201] (76-252-116-184.lightspeed.cicril.sbcglobal.net [76.252.116.184]) by st43p00im-zteg10071901.me.com (Postfix) with ESMTPSA id 87F7FD811B4 for ; Sat, 25 Jul 2020 01:47:47 +0000 (UTC) Content-Type: multipart/alternative; boundary=Apple-Mail-8D2D7746-C8DA-41C6-9B89-12B02ECDB4E2 Content-Transfer-Encoding: 7bit From: Troy Zimmerman Mime-Version: 1.0 (1.0) Subject: Re: Does gandiva support the unary minus operator? Date: Fri, 24 Jul 2020 20:47:46 -0500 Message-Id: References: In-Reply-To: To: user@arrow.apache.org X-Mailer: iPhone Mail (17F80) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-25_01:2020-07-24,2020-07-24 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2004280000 definitions=main-2007250012 --Apple-Mail-8D2D7746-C8DA-41C6-9B89-12B02ECDB4E2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Neal, Thank for you the quick response & suggestion. That is the obvious workaroun= d I missed. :) As for the contributing docs, I=E2=80=99ll put something together and submit= a PR. Thank you again! Best, Troy > On Jul 24, 2020, at 15:23, Neal Richardson w= rote: >=20 > =EF=BB=BF > I can't answer the first question authoritatively, though off the top of m= y head, could you translate that to `0 - x` and use the binary operator? You= may also consider posting this question to the dev@arrow.apache.org mailing= list. >=20 > As for contributing tutorials and user guides, yes, please do. I believe t= he right location to add what you're talking about would be in https://githu= b.com/apache/arrow/tree/master/docs/source/python. >=20 > Neal >=20 >> On Fri, Jul 24, 2020 at 12:42 PM Troy Zimmerman wrot= e: >> Hi, >>=20 >> I=E2=80=99ve written a small library that uses the ast module to parse a P= ython expression into a Gandiva expression tree. I=E2=80=99d like to able to= do numeric negation (i.e. -x) in an expression, but I=E2=80=99ve I looked t= hrough the source code and haven=E2=80=99t found a way to achieve this. (I c= ould also be missing an obvious workaround.) >>=20 >> Separately, are there any tutorials on using the Python bindings for Gand= iva? If not, would the project be open to such a contribution? At the moment= I=E2=80=99ve got scattershot notes of what I=E2=80=99ve learned from diggin= g through the source, but could organize them into a brief tutorial or cookb= ook. >>=20 >> Best, >> Troy --Apple-Mail-8D2D7746-C8DA-41C6-9B89-12B02ECDB4E2 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi Neal,

Thank for you the quick response & sugge= stion. That is the obvious workaround I missed. :)
As for the contributing docs, I=E2=80=99ll put somet= hing together and submit a PR.

Thank you again!

Best,<= /div>
Troy

On Jul 24, 2020, at 15:23, Neal Richardson <neal.p.richardson@gmail.co= m> wrote:

=EF=BB=BF
I can't answer the first question autho= ritatively, though off the top of my head, could you translate that to `0 - x= ` and use the binary operator? You may also consider posting this question t= o the dev@arrow.apache.org maili= ng list.

As for contributing tutorials and user gui= des, yes, please do. I believe the right location to add what you're talking= about would be in https://github.com/apache/arrow/tree/master/docs/source/py= thon.

Neal

On Fri, Jul 24, 2020 at 12:4= 2 PM Troy Zimmerman <tazimmerman@me= .com> wrote: