spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <>
Subject [jira] [Commented] (SPARK-10364) Support Parquet logical type TIMESTAMP_MILLIS
Date Wed, 05 Oct 2016 00:35:20 GMT


Apache Spark commented on SPARK-10364:

User 'dilipbiswal' has created a pull request for this issue:

> Support Parquet logical type TIMESTAMP_MILLIS
> ---------------------------------------------
>                 Key: SPARK-10364
>                 URL:
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 1.5.0
>            Reporter: Cheng Lian
> The {{TimestampType}} in Spark SQL is of microsecond precision. Ideally, we should convert
Spark SQL timestamp values into Parquet {{TIMESTAMP_MICROS}}. But unfortunately parquet-mr
hasn't supported it yet.
> For the read path, we should be able to read {{TIMESTAMP_MILLIS}} Parquet values and
pad a 0 microsecond part to read values.
> For the write path, currently we are writing timestamps as {{INT96}}, similar to Impala
and Hive. One alternative is that, we can have a separate SQL option to let users be able
to write Spark SQL timestamp values as {{TIMESTAMP_MILLIS}}. Of course, in this way the microsecond
part will be truncated.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message