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 CF34D18E36 for ; Fri, 26 Jun 2015 21:08:04 +0000 (UTC) Received: (qmail 9932 invoked by uid 500); 26 Jun 2015 21:08:04 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 9905 invoked by uid 500); 26 Jun 2015 21:08:04 -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 9894 invoked by uid 99); 26 Jun 2015 21:08:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2015 21:08:04 +0000 Date: Fri, 26 Jun 2015 21:08:04 +0000 (UTC) From: "Daniel Barclay (Drill) (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-3405) "INTERVAL '1111111111' YEAR(10)" yields garbage result MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Daniel Barclay (Drill) created DRILL-3405: --------------------------------------------- Summary: "INTERVAL '1111111111' YEAR(10)" yields garbage result Key: DRILL-3405 URL: https://issues.apache.org/jira/browse/DRILL-3405 Project: Apache Drill Issue Type: Bug Reporter: Daniel Barclay (Drill) Some interval literals yield garbage results. It seems to be those with YEAR and/or MONTH fields, with Drill's maximum leading-digit precision (10), and having a ten-digit value for that leading field (even when it's 10 digits that fit in int). {noformat} 0: jdbc:drill:zk=local> SELECT INTERVAL '1111111111' YEAR(10) FROM INFORMATION_SCHEMA.CATALOGS; +-------------+ | EXPR$0 | +-------------+ | P37369287Y | +-------------+ 1 row selected (0.234 seconds) 0: jdbc:drill:zk=local> 0: jdbc:drill:zk=local> SELECT INTERVAL '1111111111' MONTH(10) FROM INFORMATION_SCHEMA.CATALOGS; +---------------+ | EXPR$0 | +---------------+ | P92592592Y7M | +---------------+ 1 row selected (0.171 seconds) 0: jdbc:drill:zk=local> 0: jdbc:drill:zk=local> SELECT INTERVAL '1111111111-06' YEAR(10) TO MONTH FROM INFORMATION_SCHEMA.CATALOGS; +---------------+ | EXPR$0 | +---------------+ | P37369287Y6M | +---------------+ 1 row selected (0.229 seconds) 0: jdbc:drill:zk=local> {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)