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 D061111B8A for ; Mon, 9 Jun 2014 23:09:23 +0000 (UTC) Received: (qmail 57864 invoked by uid 500); 9 Jun 2014 23:09:23 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 57839 invoked by uid 500); 9 Jun 2014 23:09:22 -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 57825 invoked by uid 99); 9 Jun 2014 23:09:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 23:09:22 +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; Mon, 09 Jun 2014 23:09:21 +0000 Received: (qmail 57231 invoked by uid 99); 9 Jun 2014 23:09:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 23:09:01 +0000 Date: Mon, 9 Jun 2014 23:09:01 +0000 (UTC) From: "Xiao Meng (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-748) C++ Client - Support timestamp/date before unix time and handle y2028 problem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DRILL-748?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Xiao Meng updated DRILL-748: ---------------------------- Attachment: (was: DRILL-748.3.patch) > C++ Client - Support timestamp/date before unix time and handle y2028 pro= blem > -------------------------------------------------------------------------= ---- > > Key: DRILL-748 > URL: https://issues.apache.org/jira/browse/DRILL-748 > Project: Apache Drill > Issue Type: Bug > Components: Client - C++ > Reporter: Xiao Meng > Assignee: Parth Chandra > Labels: C++, client > Attachments: DRILL-748.4.patch > > > Query like: > {code} > show files in dfs.`/tmp` > {code} > will fail because the timestamp value =E2=80=991968-12-31 16:00:00' > The C++ Drill Client use uint64_t to store the time, any timestamp before= unix time =E2=80=9C1970-1-1 00:00:00=E2=80=9D will fail. > Query for Test > {code} > ./querySubmitter api=3Dasync type=3Dsql connectStr=3Djdbc:drill:local=3D= localhost:31010 query=3D"select cast('-123456-7-8' as date) as negative_da= te, cast('876543-2-1' as date) as positive_date, timestamptztype(-2038,1,2,= 3,4,5,6,'UTC') as tz from INFORMATION_SCHEMA.SCHEMATA" > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)