Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1683

Add microsecond-precision time and timestamp logical type specs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • spec
    • None

    Description

      SQL engines that store data in Avro need to be able to store times and timestamps to meet the SQL spec. For portability, those values should be labelled so other readers can work with the data. I propose adding two new logical types:

      • time-micros: annotates a long, represents the number of microseconds from midnight.
      • timestamp-micros: annotates a long, represents the number of microseconds from the unix epoch.

      Like the other time types, these representations match the ones that were just added to Parquet (PARQUET-200) to make implementations easier.

      Attachments

        1. AVRO-1683-1.patch
          3 kB
          Ryan Blue

        Activity

          People

            rdblue Ryan Blue
            rdblue Ryan Blue
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: