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 E416118953 for ; Mon, 26 Oct 2015 03:21:27 +0000 (UTC) Received: (qmail 87324 invoked by uid 500); 26 Oct 2015 03:21:27 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 87297 invoked by uid 500); 26 Oct 2015 03:21:27 -0000 Mailing-List: contact issues-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 issues@drill.apache.org Received: (qmail 87286 invoked by uid 99); 26 Oct 2015 03:21:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2015 03:21:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A835E2C14F2 for ; Mon, 26 Oct 2015 03:21:27 +0000 (UTC) Date: Mon, 26 Oct 2015 03:21:27 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-3950) CAST(...) * (Interval Constant) gives Internal Exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14973596#comment-14973596 ] ASF GitHub Bot commented on DRILL-3950: --------------------------------------- GitHub user hsuanyi opened a pull request: https://github.com/apache/drill/pull/218 DRILL-3950: Add test case and bump calcite version to 1.4.0-drill-r7 Fix is in CALCITE-922 You can merge this pull request into a Git repository by running: $ git pull https://github.com/hsuanyi/incubator-drill DRILL-3950 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/drill/pull/218.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #218 ---- commit 265e8f8b9131bb202c28be296d6dedda612a2c7c Author: Hsuan-Yi Chu Date: 2015-10-20T17:01:08Z DRILL-3950: Add test case and bump calcite version to 1.4.0-drill-r7 Fix is in CALCITE-922 ---- > CAST(...) * (Interval Constant) gives Internal Exception > -------------------------------------------------------- > > Key: DRILL-3950 > URL: https://issues.apache.org/jira/browse/DRILL-3950 > Project: Apache Drill > Issue Type: Bug > Components: Query Planning & Optimization > Reporter: Sean Hsuan-Yi Chu > Assignee: Sean Hsuan-Yi Chu > > For example, > {code} > select cast(empno as Integer) * (INTERVAL '1' DAY) > from emp > {code} > results into > {code} > java.lang.AssertionError: Internal error: invalid literal: INTERVAL '1' DAY > {code} > The reason is that INTERVAL constant is not extracted properly in the cases where this constant times a CAST() function -- This message was sent by Atlassian JIRA (v6.3.4#6332)