Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA72A17F96 for ; Fri, 20 Mar 2015 20:59:38 +0000 (UTC) Received: (qmail 47999 invoked by uid 500); 20 Mar 2015 20:59:38 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 47943 invoked by uid 500); 20 Mar 2015 20:59:38 -0000 Mailing-List: contact dev-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 dev@drill.apache.org Received: (qmail 47894 invoked by uid 99); 20 Mar 2015 20:59:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2015 20:59:38 +0000 Date: Fri, 20 Mar 2015 20:59:38 +0000 (UTC) From: "Rahul Challapalli (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-2513) JsonWriter writes a timestamp values for 'time' datatype MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Rahul Challapalli created DRILL-2513: ---------------------------------------- Summary: JsonWriter writes a timestamp values for 'time' datatype Key: DRILL-2513 URL: https://issues.apache.org/jira/browse/DRILL-2513 Project: Apache Drill Issue Type: Bug Reporter: Rahul Challapalli Assignee: Mehant Baid git.commit.id.abbrev=9c9ee8c Query : {code} create table temp_fromcsv as select cast(columns[3] as time) time_col from dfs.`cross-sources`.`fewtypes.tbl`; {code} The newly create json file has the below values {code} select * from dfs.`cross-sources`.`temp_fromcsv`; +------------+ | time_col | +------------+ | 1970-01-01T00:00:00.000Z | | 1970-01-01T01:00:00.000Z | | 1970-01-01T02:03:00.000Z | | 1970-01-01T11:59:00.000Z | | 1970-01-01T12:00:00.000Z | | 1970-01-01T12:01:00.000Z | | 1970-01-01T23:59:00.000Z | | 1970-01-01T23:59:59.990Z | | 1970-01-01T15:36:39.000Z | | 1970-01-01T15:36:39.000Z | | 1970-01-01T00:01:00.000Z | | 1970-01-01T02:33:00.000Z | | 1970-01-01T23:59:00.000Z | | 1970-01-01T12:03:00.000Z | | 1970-01-01T12:31:00.000Z | | 1970-01-01T19:59:00.000Z | | 1970-01-01T11:59:59.990Z | | 1970-01-01T15:37:39.000Z | | 1970-01-01T15:36:39.000Z | | 1970-01-01T11:59:59.990Z | | 1970-01-01T15:37:39.000Z | {code} This issue does not happen with ParquetWriter I attached the data file used. -- This message was sent by Atlassian JIRA (v6.3.4#6332)