You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in the mailing list, INT96 is only used to represent nanosec timestamp in Impala for some historical reasons, and should be deprecated. Since nanosec precision is rarely a real requirement, one possible and simple solution would be replacing INT96 with INT64 (TIMESTAMP_MILLIS) or INT64 (TIMESTAMP_MICROS).
Several projects (Impala, Hive, Spark, ...) support INT96.
We need a clear spec of the replacement and the path to deprecation.
Ryan Blue / @rdblue:
While we don't want to encourage anyone to use int96 as a timestamp, I'm not sure if it is necessary to get rid of the type entirely. If int96 is a JVM and hardware-supported type, then it makes sense to keep it. But if everything jumps to int128 instead, then maybe we should go with that instead. Do we have enough information to make that decision yet?
Lars Volker / @lekv:
We discussed this issue in today's Parquet sync and agreed to deprecate INT96. As a replacement to store timestamps (the most common use for INT96) we will encourage all projects who currently use INT96 to switch to INT64 and either use the TIMESTAMP_MILLIS or TIMESTAMP_MICROS logical types.
We will not fix the ordering issues around INT96 that resulted in parquet-mr writing wrong min/max statistics.
Jeff Knupp / @jeffknupp:
There is a PR against Spark that adds support for TIMESTAMP_MILLIS (apache/spark#15332) but after a good deal of commentary and a working patch, it has sat untouched since October. Perhaps simply asking in a Spark JIRA ticket to re-review that PR would be the quickest way for Spark to support reading int64 TIMESTAMP_MILLIS?
Songzhi Liu: @lekv Hi Lars, is it the direction of the community to deprecate INT96 support? In that case, what will be used to support nanosec precision? In some financial services use cases, support for nanosecond precision is critical. Could you please advise the potential plan of the deprecation plan?
Activity
asfimport commentedon Jul 1, 2015
Ryan Blue / @rdblue:
While we don't want to encourage anyone to use int96 as a timestamp, I'm not sure if it is necessary to get rid of the type entirely. If int96 is a JVM and hardware-supported type, then it makes sense to keep it. But if everything jumps to int128 instead, then maybe we should go with that instead. Do we have enough information to make that decision yet?
asfimport commentedon Jul 2, 2015
Cheng Lian / @liancheng:
AFAIK JVM doesn't have native support for INT96.
asfimport commentedon Aug 3, 2016
Julien Le Dem / @julienledem:
I think we should deprecate it and discourage its use. For backward compatibility, it has to stay.
https://github.com/apache/parquet-format/blob/master/LogicalTypes.md doesn't even refer to it.
asfimport commentedon Aug 3, 2016
Ryan Blue / @rdblue:
+1
asfimport commentedon Mar 9, 2017
Lars Volker / @lekv:
We discussed this issue in today's Parquet sync and agreed to deprecate INT96. As a replacement to store timestamps (the most common use for INT96) we will encourage all projects who currently use INT96 to switch to INT64 and either use the TIMESTAMP_MILLIS or TIMESTAMP_MICROS logical types.
We will not fix the ordering issues around INT96 that resulted in parquet-mr writing wrong min/max statistics.
asfimport commentedon Mar 9, 2017
Lars Volker / @lekv:
I created IMPALA-5049 to track the required work on Impala's side.
What other projects need to transition away from INT96? Who should create JIRAs for them?
asfimport commentedon Mar 9, 2017
Jeff Knupp / @jeffknupp:
I'm reasonably sure it's the only timestamp format that Spark currently supports (see apache/spark#3820).
asfimport commentedon Mar 10, 2017
Uwe Korn / @xhochy:
The "offending code" that blocks the usage of
TIMESTAMP_MILLISin Spark is at https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetSchemaConverter.scala#L161asfimport commentedon Mar 14, 2017
Jeff Knupp / @jeffknupp:
There is a PR against Spark that adds support for TIMESTAMP_MILLIS (apache/spark#15332) but after a good deal of commentary and a working patch, it has sat untouched since October. Perhaps simply asking in a Spark JIRA ticket to re-review that PR would be the quickest way for Spark to support reading int64 TIMESTAMP_MILLIS?
asfimport commentedon Jun 25, 2019
Songzhi Liu:
@lekv Hi Lars, is it the direction of the community to deprecate INT96 support? In that case, what will be used to support nanosec precision? In some financial services use cases, support for nanosecond precision is critical. Could you please advise the potential plan of the deprecation plan?
asfimport commentedon Jun 25, 2019
Wes McKinney / @wesm:
[~liusztc09]support for nanoseconds in the INT64 type has been addedb879065
This is the recommended path forward