Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE21817716 for ; Tue, 6 Oct 2015 08:56:50 +0000 (UTC) Received: (qmail 46745 invoked by uid 500); 6 Oct 2015 08:56:50 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 46691 invoked by uid 500); 6 Oct 2015 08:56:50 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 46679 invoked by uid 99); 6 Oct 2015 08:56:50 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2015 08:56:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AB96918098E for ; Tue, 6 Oct 2015 08:56:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.898 X-Spam-Level: ** X-Spam-Status: No, score=2.898 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 1RRszkFH7yzf for ; Tue, 6 Oct 2015 08:56:49 +0000 (UTC) Received: from mail-ig0-f176.google.com (mail-ig0-f176.google.com [209.85.213.176]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id ABF47204C9 for ; Tue, 6 Oct 2015 08:56:48 +0000 (UTC) Received: by igcpe7 with SMTP id pe7so19662677igc.0 for ; Tue, 06 Oct 2015 01:56:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=wHKNKq3Jjswcb2MgI0svYLeB9jYdoZB9Iwyk7NLTqcQ=; b=qqb4FRX3t88zBaMzEO68s07y1ZKQGTmuz92KHmf+YFZTbJ0vj3h4iAk1ThiHL6N9lf Rz3yOatdQ5MknIi6pdeE3VwU9tdt64XC2Oz/Vpx8XSyZWxJ/CSiQzc5QJTsYGDXah+Yg n9pONIOyxVDQuinYhrtwvog7qQ1cCLROg2+71ny+YTM8Z+mLqEOUjZKGBsaVDZvWLjDN 17hG6ro0EMok/1RL4TWxiOKonMvTHv6c9HQteElG3wz/Mkfw67eHq/lMI/SCSH19hn2v SSnlNz0UW+VSqtwcTW8v08PEcsXQGE6W5RX6G1RW+F+nwIT+0ffxIIyUB51gBIQmyxEJ YzAg== MIME-Version: 1.0 X-Received: by 10.50.61.148 with SMTP id p20mr14440289igr.81.1444121807648; Tue, 06 Oct 2015 01:56:47 -0700 (PDT) Received: by 10.64.228.39 with HTTP; Tue, 6 Oct 2015 01:56:47 -0700 (PDT) Reply-To: tugdual@gmail.com Date: Tue, 6 Oct 2015 10:56:47 +0200 Message-ID: Subject: [UDF] How do I return NULL From: Tugdual Grall To: dev@drill.apache.org Content-Type: multipart/alternative; boundary=047d7bdca44c5b805805216bcf41 --047d7bdca44c5b805805216bcf41 Content-Type: text/plain; charset=UTF-8 Hello Drillers, I am developing a custom function and I would like to return NULL (based on the value, for example if the varchar is '' I want my function to return NULL) I have not found the way to do it. Regards Tug @tgrall --047d7bdca44c5b805805216bcf41--