Return-Path: X-Original-To: apmail-tajo-dev-archive@minotaur.apache.org Delivered-To: apmail-tajo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AA51210F66 for ; Wed, 11 Dec 2013 09:17:36 +0000 (UTC) Received: (qmail 66369 invoked by uid 500); 11 Dec 2013 09:17:36 -0000 Delivered-To: apmail-tajo-dev-archive@tajo.apache.org Received: (qmail 66325 invoked by uid 500); 11 Dec 2013 09:17:35 -0000 Mailing-List: contact dev-help@tajo.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tajo.incubator.apache.org Delivered-To: mailing list dev@tajo.incubator.apache.org Received: (qmail 66210 invoked by uid 99); 11 Dec 2013 09:17:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Dec 2013 09:17:29 +0000 X-ASF-Spam-Status: No, hits=-2000.1 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; Wed, 11 Dec 2013 09:17:28 +0000 Received: (qmail 60788 invoked by uid 99); 11 Dec 2013 09:17:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Dec 2013 09:17:07 +0000 Date: Wed, 11 Dec 2013 09:17:07 +0000 (UTC) From: "Hyunsik Choi (JIRA)" To: dev@tajo.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (TAJO-407) PostgreSQL-style cast should be higher operator priority 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/TAJO-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hyunsik Choi updated TAJO-407: ------------------------------ Attachment: TAJO-407.patch After this patch, the below expressions work well. {code} testSimpleEval("select '1980-04-01 01:50:01'::timestamp;", new String [] {"1980-04-01 01:50:01"}); testSimpleEval("select '1980-04-01 01:50:01'::timestamp::bigint;", new String [] {"323369401000"}); testSimpleEval("select ('1980-04-01 01:50:01'::timestamp)::bigint;", new String [] {"323369401000"}); {code} > PostgreSQL-style cast should be higher operator priority > -------------------------------------------------------- > > Key: TAJO-407 > URL: https://issues.apache.org/jira/browse/TAJO-407 > Project: Tajo > Issue Type: Bug > Components: operator/expression > Reporter: Hyunsik Choi > Assignee: Hyunsik Choi > Fix For: 0.8-incubating > > Attachments: TAJO-407.patch > > > See the title. Currently, postgresql-style cast has lower operator priority than some operators like equal(=). So, the following statement does not work properly. > {noformat} > tajo> select l_shipdate from lineitem where l_shipdate = '1996-03-13'::date limit 1; > ERROR: No operator matches the given name and argument type(s): lineitem.l_shipdate (DATE(0)) = 1996-03-13 > {noformat} -- This message was sent by Atlassian JIRA (v6.1.4#6159)