Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15109

Calcite engine. TIMESTAMPDIFF for MICROSECOND unit doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • sql
    • Docs Required, Release Notes Required

    Description

      The function TIMESTAMPDIFF for MICROSECOND unit return incorrect results for many cases. As the example below returns 0.

      SELECT TIMESTAMPDIFF(MICROSECOND, TIMESTAMP '2022-02-01 10:30:28.000', TIMESTAMP '2022-02-01 10:30:28.128')

      seeĀ src/test/sql/function/timestamp/test_timestampdiff.test_ignore

      Attachments

        Issue Links

          Activity

            People

              alex_pl Aleksey Plekhanov
              jooger Iurii Gerzhedovich
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h