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

Calcite engine. Operator MINUS_DATE for days, hours, and minutes returns wrong result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      For example, all queries:

      SELECT (DATE '2021-01-02' - DATE '2021-01-01') DAYS
      SELECT (DATE '2021-01-02' - DATE '2021-01-01') HOURS
      SELECT (DATE '2021-01-02' - DATE '2021-01-01') MINUTES
      SELECT (DATE '2021-01-02' - DATE '2021-01-01') SECONDS

      Returns 86400000 (the value in milliseconds)

      For YEAR time unit return the same value as for MONTH.

      Attachments

        Issue Links

          Activity

            People

              alex_pl Aleksey Plekhanov
              alex_pl Aleksey Plekhanov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: