Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5552

Returned timestamp is incorrect after the 100th row

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • avatica-1.23.0
    • None
    • avatica
    • None

    Description

      When fetching data that contains timestamps the returned timestamp after row 100 is incorrect.

      This can be reproduced using the CSV adapter (calcite-csv) using the TSTAMPS.csv file attached. It contains 101 timestamps with the value 1900-01-01 00:00:00. The first 100 is returned correctly, but number 101 in the result has the value 1899-12-31 23:00:00 instead.

      Marking this bug as critical since not beeing able to trust the values returned by calcite is as bad as it gets in my opinion.

      I do not know if the bug is in calcite or avatica.

      I have created a project that reproduces the issue. You can find that here: nytro77/calcite-timestamp-bug: Showcase bug in Calcite or Avatica that causes faulty timestamps to be returned (github.com)

      It starts an AvaticaServer that serves the attached file as a table using calcite-csv and a unit tests that connects to the server and fetches the data.
      Run it with 

      ./mvnw test

      Attachments

        1. TSTAMPS.csv
          2 kB
          Magnus Mogren

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mamo Magnus Mogren
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: