[ https://issues.apache.org/jira/browse/SPARK-19496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15939508#comment-15939508 ]
Josh Rosen commented on SPARK-19496: ------------------------------------ Let's make sure to document this clearly in the release notes. I just spent a bunch of time debugging what turned out to be an invalid pattern which happened to work by accident before but now is returning {{null}}. Adding this to the release notes may save some pain when folks upgrade. > to_date with format has weird behavior > -------------------------------------- > > Key: SPARK-19496 > URL: https://issues.apache.org/jira/browse/SPARK-19496 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 2.1.0 > Reporter: Wenchen Fan > Assignee: Song Jun > Labels: release-notes > Fix For: 2.2.0 > > > Today, if we run > {code} > SELECT to_date('2015-07-22', 'yyyy-dd-MM') > {code} > will result to `2016-10-07`, while running > {code} > SELECT to_date('2014-31-12') # default format > {code} > will return null. > this behavior is weird and we should check other systems like hive to see if > this is expected. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org