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 18E9A200D34 for ; Thu, 28 Sep 2017 14:34:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 176BC1609C2; Thu, 28 Sep 2017 12:34:06 +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 557841609ED for ; Thu, 28 Sep 2017 14:34:05 +0200 (CEST) Received: (qmail 93274 invoked by uid 500); 28 Sep 2017 12:34:04 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 93153 invoked by uid 99); 28 Sep 2017 12:34:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2017 12:34:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id F2E5F18120A for ; Thu, 28 Sep 2017 12:34:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id MHgzcy3boUuu for ; Thu, 28 Sep 2017 12:34:03 +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 98A865FB4E for ; Thu, 28 Sep 2017 12:34:02 +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 71BB4E0EF5 for ; Thu, 28 Sep 2017 12:34:01 +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 DC1FC242BE for ; Thu, 28 Sep 2017 12:34:00 +0000 (UTC) Date: Thu, 28 Sep 2017 12:34:00 +0000 (UTC) From: "Apache Spark (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (SPARK-22157) The uniux_timestamp method handles the time field that is lost in mill MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 28 Sep 2017 12:34:06 -0000 [ https://issues.apache.org/jira/browse/SPARK-22157?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Apache Spark reassigned SPARK-22157: ------------------------------------ Assignee: Apache Spark > The uniux_timestamp method handles the time field that is lost in mill > ---------------------------------------------------------------------- > > Key: SPARK-22157 > URL: https://issues.apache.org/jira/browse/SPARK-22157 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 2.0.2, 2.1.0, 2.2.0 > Reporter: hantiantian > Assignee: Apache Spark > > 1=E3=80=81create table test,and execute the flowing command > select s1 from test; > result: 2014-10-10 19:30:10.222 > 2=E3=80=81when use the native unix_timestamp method, and execute the flow= ing command > select unix_timestamp(s1,"yyyy-MM-dd HH:mm:ss.SSS") from test; > result: 1412940610 > Obviously=EF=BC=8Cthe mill part of the time field has been lost. > 3=E3=80=81After repair=EF=BC=8Cexecute the command again > select unix_timestamp(s1,"yyyy-MM-dd HH:mm:ss.SSS") from test; > result: 1412940610.222 > Conclusion=EF=BC=9AAfter repair, we can keep the the mill part of the tim= e field. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org