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 53CBE10F97 for ; Tue, 3 Jun 2014 18:23:28 +0000 (UTC) Received: (qmail 35890 invoked by uid 500); 3 Jun 2014 18:23:28 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 35865 invoked by uid 500); 3 Jun 2014 18:23:28 -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 35856 invoked by uid 99); 3 Jun 2014 18:23:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2014 18:23:28 +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; Tue, 03 Jun 2014 18:23:27 +0000 Received: (qmail 33031 invoked by uid 99); 3 Jun 2014 18:23:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2014 18:23:06 +0000 Date: Tue, 3 Jun 2014 18:23:06 +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.1.patch.txt) > 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: Xiao Meng > Labels: C++, client > > 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)