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

Add DAYOFWEEK and DAYOFYEAR as valid synonyms of DOW, DOY

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.35.0
    • None

    Description

      Currently, a query such as: EXTRACT(DAYOFWEEK FROM DATE '2008-12-25'); is invalid while EXTRACT(DOW FROM DATE '2008-12-25') is acceptable. BigQuery (and perhaps other dialects) accept the non-abbreviated version as a valid time unit. After this change, DAYOFWEEK and DAYOFYEAR would both be synonyms of DOW and DOY, respectively.

      Relevant BigQuery Docs

      Any comments, questions, or suggestions for the linked PR are highly appreciated.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tanclary Tanner Clary
            tanclary Tanner Clary
            Votes:
            0 Vote for this issue
            Watchers:
            5 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 - 1h 10m
                1h 10m

                Slack

                  Issue deployment