Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE6941118E for ; Tue, 10 Jun 2014 20:35:23 +0000 (UTC) Received: (qmail 14036 invoked by uid 500); 10 Jun 2014 20:35:23 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 13908 invoked by uid 500); 10 Jun 2014 20:35:23 -0000 Mailing-List: contact issues-help@drill.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.incubator.apache.org Delivered-To: mailing list issues@drill.incubator.apache.org Received: (qmail 13899 invoked by uid 99); 10 Jun 2014 20:35:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2014 20:35:23 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 10 Jun 2014 20:35:22 +0000 Received: (qmail 13102 invoked by uid 99); 10 Jun 2014 20:35:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2014 20:35:02 +0000 Date: Tue, 10 Jun 2014 20:35:02 +0000 (UTC) From: "Mehant Baid (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (DRILL-721) Parse failure for RIGHT function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DRILL-721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mehant Baid resolved DRILL-721. ------------------------------- Resolution: Invalid LEFT is a reserved keyword, used in JOIN syntax. Escape LEFT keyword with backticks. select `left`('abcdef', 2) from dfs.`/tmp/input.json`; +------------+ | EXPR$0 | +------------+ | ab | +------------+ > Parse failure for RIGHT function > -------------------------------- > > Key: DRILL-721 > URL: https://issues.apache.org/jira/browse/DRILL-721 > Project: Apache Drill > Issue Type: Bug > Components: Functions - Drill > Affects Versions: 1.0.0-milestone-1 > Reporter: Krystal > Assignee: Mehant Baid > Fix For: 1.0.0-BETA1 > > > The RIGHT function fails with the following error: > select right(name, '6') from voter where name like 'victor%'; > Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "0d292a76-98ba-4c10-80c1-8e374db23e7f" > endpoint { > user_port: 31010 > control_port: 31011 > data_port: 31012 > } > error_type: 0 > message: "Failure while parsing sql. < SqlParseException:[ Encountered "right" at line 1, column 8. > Was expecting one of: > "UNION" ... > "INTERSECT" ... > "EXCEPT" ... > . > . > . -- This message was sent by Atlassian JIRA (v6.2#6252)