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

Calcite engine. EXTRACT(DOW FROM d) returns invalid results

    XMLWordPrintableJSON

Details

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

    Description

      The query
      SELECT EXTRACT(DOW FROM CAST('1993-08-14' AS DATE))
      return 7.

      According with documentation:
      dow - The day of the week as Sunday(0) to Saturday(6)

      Tests:
      function/date/test_extract.test
      function/date/test_extract_edge_cases.test
      function/timestamp/test_extract.test

      Attachments

        Issue Links

          Activity

            People

              alex_pl Aleksey Plekhanov
              tledkov-gridgain Taras Ledkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 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