Skip to content

INT96 should be marked as deprecated #301

Closed

Description

@asfimport

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.

Reporter: Cheng Lian / @liancheng
Assignee: Lars Volker / @lekv

Related issues:

PRs and other links:

Note: This issue was originally created as PARQUET-323. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Jul 1, 2015

    @asfimport
    Author

    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?

  2. asfimport commented on Jul 2, 2015

    @asfimport
    Author

    Cheng Lian / @liancheng:
    AFAIK JVM doesn't have native support for INT96.

  3. asfimport commented on Aug 3, 2016

    @asfimport
    Author

    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.

  4. asfimport commented on Aug 3, 2016

    @asfimport
    Author
  5. asfimport commented on Mar 9, 2017

    @asfimport
    Author

    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.

  6. asfimport commented on Mar 9, 2017

    @asfimport
    Author

    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?

  7. asfimport commented on Mar 9, 2017

    @asfimport
    Author

    Jeff Knupp / @jeffknupp:
    I'm reasonably sure it's the only timestamp format that Spark currently supports (see apache/spark#3820).

  8. asfimport commented on Mar 14, 2017

    @asfimport
    Author

    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?

  9. asfimport commented on Jun 25, 2019

    @asfimport
    Author

    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?

     

  10. asfimport commented on Jun 25, 2019

    @asfimport
    Author

    Wes McKinney / @wesm:
    [~liusztc09] support for nanoseconds in the INT64 type has been added

    b879065

    This is the recommended path forward

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions