Return-Path: X-Original-To: apmail-spark-issues-archive@minotaur.apache.org Delivered-To: apmail-spark-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 B0F231860F for ; Mon, 16 Nov 2015 17:10:12 +0000 (UTC) Received: (qmail 93169 invoked by uid 500); 16 Nov 2015 17:10:11 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 92761 invoked by uid 500); 16 Nov 2015 17:10:11 -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 92411 invoked by uid 99); 16 Nov 2015 17:10:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Nov 2015 17:10:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 13B422C1F70 for ; Mon, 16 Nov 2015 17:10:11 +0000 (UTC) Date: Mon, 16 Nov 2015 17:10:11 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (SPARK-11760) SQL Catalyst data time test fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-11760?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 resolved SPARK-11760. ------------------------------------------ Resolution: Invalid It has already been fixed by: {code} commit 06f1fdba6d1425afddfc1d45a20dbe9bede15e7a Author: Wenchen Fan Date: Mon Nov 16 08:58:40 2015 -0800 [SPARK-11752] [SQL] fix timezone problem for DateTimeUtils.getSeconds =20 code snippet to reproduce it: ``` TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai")) val t =3D Timestamp.valueOf("1900-06-11 12:14:50.789") val us =3D fromJavaTimestamp(t) assert(getSeconds(us) =3D=3D=3D t.getSeconds) ``` =20 it will be good to add a regression test for it, but the reproducing co= de need to change the default timezone, and even we change it back, the `la= zy val defaultTimeZone` in `DataTimeUtils` is fixed. =20 Author: Wenchen Fan =20 Closes #9728 from cloud-fan/seconds. {code} > SQL Catalyst data time test fails > --------------------------------- > > Key: SPARK-11760 > URL: https://issues.apache.org/jira/browse/SPARK-11760 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 1.6.0 > Reporter: Jean-Baptiste Onofr=C3=A9 > > In the sql/catalyst module, test("hours / minute / seconds") fails on the= third test data: > {code} > - hours / miniute / seconds *** FAILED *** > 29 did not equal 50 (DateTimeUtilsSuite.scala:370) > {code} > Actually, the problem is that it doesn't use the timezone for seconds, so= , we may have to different timestamp comparison. > I will submit a PR to fix that in DateTimeUtils. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org