From issues-return-231267-archive-asf-public=cust-asf.ponee.io@spark.apache.org Wed Jul 10 17:19:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0D19D180679 for ; Wed, 10 Jul 2019 19:19:04 +0200 (CEST) Received: (qmail 855 invoked by uid 500); 10 Jul 2019 17:19:02 -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 786 invoked by uid 99); 10 Jul 2019 17:19:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jul 2019 17:19:01 +0000 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 1DDE4E2ED2 for ; Wed, 10 Jul 2019 17:19: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 6703A26587 for ; Wed, 10 Jul 2019 17:19:00 +0000 (UTC) Date: Wed, 10 Jul 2019 17:19:00 +0000 (UTC) From: "Dongjoon Hyun (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SPARK-28015) Check stringToDate() consumes entire input for the yyyy and yyyy-[m]m formats MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-28015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dongjoon Hyun updated SPARK-28015: ---------------------------------- Summary: Check stringToDate() consumes entire input for the yyyy and yyyy-[m]m formats (was: Invalid date formats should throw an exception) > Check stringToDate() consumes entire input for the yyyy and yyyy-[m]m formats > ----------------------------------------------------------------------------- > > Key: SPARK-28015 > URL: https://issues.apache.org/jira/browse/SPARK-28015 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 2.0.2, 2.1.3, 2.2.3, 2.3.3, 2.4.3 > Reporter: Yuming Wang > Priority: Major > > Invalid date formats should throw an exception: > {code:sql} > SELECT date '1999 08 01' > 1999-01-01 > {code} > Supported date formats: > https://github.com/apache/spark/blob/ab8710b57916a129fcb89464209361120d224535/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala#L365-L374 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org