You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiaonan Yang (Jira)" <ji...@apache.org> on 2022/10/04 18:19:00 UTC
[jira] [Resolved] (SPARK-40649) Infer date type for Json schema inference
[ https://issues.apache.org/jira/browse/SPARK-40649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiaonan Yang resolved SPARK-40649.
----------------------------------
Resolution: Duplicate
> Infer date type for Json schema inference
> -----------------------------------------
>
> Key: SPARK-40649
> URL: https://issues.apache.org/jira/browse/SPARK-40649
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.2.1
> Reporter: Xiaonan Yang
> Assignee: Jonathan Cui
> Priority: Major
> Fix For: 3.4.0
>
>
> 1. If a column contains only dates, it should be of “date” type in the inferred schema
> * If the date format and the timestamp format are identical (e.g. both are yyyy/mm/dd), entries will default to being interpreted as Date
> 2. If a column contains dates and timestamps, it should be of “timestamp” type in the inferred schema
>
> A similar issue was opened in the past but was reverted due to the lack of strict pattern matching.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org