Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E91BE200C56 for ; Fri, 10 Mar 2017 02:25:45 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E77D9160B75; Fri, 10 Mar 2017 01:25:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3F55A160B84 for ; Fri, 10 Mar 2017 02:25:45 +0100 (CET) Received: (qmail 84872 invoked by uid 500); 10 Mar 2017 01:25:44 -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 84863 invoked by uid 99); 10 Mar 2017 01:25:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Mar 2017 01:25:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DFB7BC0CE3 for ; Fri, 10 Mar 2017 01:25:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 3bwLPde4tHTZ for ; Fri, 10 Mar 2017 01:25:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 9E92A5FB59 for ; Fri, 10 Mar 2017 01:25:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B3357E09F0 for ; Fri, 10 Mar 2017 01:25:38 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 16841243B4 for ; Fri, 10 Mar 2017 01:25:38 +0000 (UTC) Date: Fri, 10 Mar 2017 01:25:38 +0000 (UTC) From: "Chun Chang (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (DRILL-599) can't convert timestamptz to time MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 10 Mar 2017 01:25:46 -0000 [ https://issues.apache.org/jira/browse/DRILL-599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chun Chang closed DRILL-599. ---------------------------- > can't convert timestamptz to time > --------------------------------- > > Key: DRILL-599 > URL: https://issues.apache.org/jira/browse/DRILL-599 > Project: Apache Drill > Issue Type: Bug > Reporter: Chun Chang > Fix For: Future > > > postgres: > foodmart=# select c_row, c_timestamptz, cast(c_timestamptz as time) from data; > c_row | c_timestamptz | c_timestamptz > -------+-------------------------------+----------------- > 1 | 1997-02-10 17:32:01-08 | 17:32:01 > 2 | 1997-02-10 17:32:01.000001-08 | 17:32:01.000001 > 3 | 1997-02-10 17:32:01.999999-08 | 17:32:01.999999 > 4 | 1997-02-10 17:32:01.4-08 | 17:32:01.4 > 5 | 1997-02-10 17:32:01.5-08 | 17:32:01.5 > 6 | 1997-02-10 17:32:01.6-08 | 17:32:01.6 > 7 | 1997-02-10 17:32:01-08 | 17:32:01 > 8 | 1997-06-10 17:32:01-07 | 17:32:01 > 9 | 2000-03-15 08:14:01-08 | 08:14:01 > 10 | 2000-03-15 04:14:02-08 | 04:14:02 > 11 | 2000-03-15 02:14:03-08 | 02:14:03 > 12 | 2000-03-15 03:14:04-08 | 03:14:04 > 13 | 2000-03-15 01:14:05-08 | 01:14:05 > 14 | 1997-02-10 17:32:01-08 | 17:32:01 > 15 | 1997-02-10 17:32:01-08 | 17:32:01 > 16 | 1997-02-10 17:32:00-08 | 17:32:00 > 17 | 1997-06-10 18:32:01-07 | 18:32:01 > 18 | 1997-01-02 00:00:00-08 | 00:00:00 > 19 | 1997-01-02 03:04:05-08 | 03:04:05 > 20 | 1997-02-10 17:32:01-08 | 17:32:01 > 21 | 1997-02-10 17:32:01-08 | 17:32:01 > 22 | 1997-02-10 17:32:01-08 | 17:32:01 > 23 | 1997-02-10 17:32:00-08 | 17:32:00 > (23 rows) > drill: > 0: jdbc:drill:schema=dfs> select cast(c_timestamptz as time) from data; > Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "63c1ad1b-6986-4bee-94ad-5de1b4cb9ac8" > endpoint { > address: "qa-node119.qa.lab" > user_port: 31010 > control_port: 31011 > data_port: 31012 > } > error_type: 0 > message: "Failure while running fragment. < IllegalArgumentException:[ Invalid format: \"1997-02-10 17:32:01-08\" is malformed at \"97-02-10 17:32:01-08\" ]" > ] > Error: exception while executing query (state=,code=0) -- This message was sent by Atlassian JIRA (v6.3.15#6346)