Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-2582

Two timestamp minus and cannot cast to interval value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1-incubating
    • any
    • sql-cmp
    • None

    Description

      SQL>select cast((timestamp'2017-04-06 11:50:00' - timestamp'2017-04-06 11:45:00') as interval second) from (values(1));

      (EXPR)
      ----------
      0.000000

      — 1 row(s) selected.

      SQL>select cast((timestamp'2017-04-06 11:50:00' - timestamp'2017-04-06 11:45:00') as interval minute) from (values(1));

      (EXPR)
      ------
      0

      >>select timestamp'2017-04-06 11:50:00' - timestamp'2017-04-03 11:45:00' from dual;

      (EXPR)
      -------------

      3

      — 1 row(s) selected.

      Attachments

        Activity

          People

            anoopsharma Anoop Sharma
            Yuan_Liu Yuan Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: