You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/09/24 04:40:00 UTC
[jira] [Updated] (SPARK-49763) [CSV Reader] Add Flag to Control Inference of Time-Only Columns as String or Timestamp During Schema Detection
[ https://issues.apache.org/jira/browse/SPARK-49763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SPARK-49763:
-----------------------------------
Labels: pull-request-available (was: )
> [CSV Reader] Add Flag to Control Inference of Time-Only Columns as String or Timestamp During Schema Detection
> --------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-49763
> URL: https://issues.apache.org/jira/browse/SPARK-49763
> Project: Spark
> Issue Type: Task
> Components: SQL
> Affects Versions: 3.5.2
> Reporter: Babu Mahesh
> Priority: Minor
> Labels: pull-request-available
>
> This task involves adding a configurable flag to control the inference of time-only columns during schema detection in Spark. By default, Spark converts time-only columns to {{Timestamp}} type, which can lead to unintended behavior in certain use cases. This new flag will allow users to specify whether time-only columns should be inferred as {{Timestamp}} or as {{{}String{}}}.
> h3. Key Changes:
> * Introduce a flag (e.g., {{{}inferStringTypeForTimeOnlyColumn{}}}).
> * When the flag is set to {{{}true{}}}, time-only columns will be inferred as {{{}String{}}}.
> * When the flag is set to {{false}} (default), time-only columns will be inferred as {{{}Timestamp{}}}.
> * Update documentation to reflect the new option.
> * Ensure backward compatibility by defaulting to the current behavior.
--
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