You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "jiaan.geng (Jira)" <ji...@apache.org> on 2021/07/30 11:14:00 UTC

[jira] [Updated] (SPARK-36346) Support TimestampNTZ type in Orc file source

     [ https://issues.apache.org/jira/browse/SPARK-36346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jiaan.geng updated SPARK-36346:
-------------------------------
    Description: 
As per https://orc.apache.org/docs/types.html, Orc supports both TIMESTAMP_NTZ and TIMESTAMP_LTZ (Spark's current default timestamp type):

A TIMESTAMP => TIMESTAMP_LTZ
Timestamp with local time zone => TIMESTAMP_NTZ
In Spark 3.1 or prior, Spark only considered TIMESTAMP.
Since 3.2, with the support of timestamp without time zone type:
* Orc writer follows the definition and uses "Timestamp with local time zone" on writing TIMESTAMP_NTZ.
* Orc reader converts the "Timestamp with local time zone" to TIMESTAMP_NTZ.


> Support TimestampNTZ type in Orc file source
> --------------------------------------------
>
>                 Key: SPARK-36346
>                 URL: https://issues.apache.org/jira/browse/SPARK-36346
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: jiaan.geng
>            Priority: Major
>
> As per https://orc.apache.org/docs/types.html, Orc supports both TIMESTAMP_NTZ and TIMESTAMP_LTZ (Spark's current default timestamp type):
> A TIMESTAMP => TIMESTAMP_LTZ
> Timestamp with local time zone => TIMESTAMP_NTZ
> In Spark 3.1 or prior, Spark only considered TIMESTAMP.
> Since 3.2, with the support of timestamp without time zone type:
> * Orc writer follows the definition and uses "Timestamp with local time zone" on writing TIMESTAMP_NTZ.
> * Orc reader converts the "Timestamp with local time zone" to TIMESTAMP_NTZ.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org