Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-13561

[C++] Implement week kernel that accepts WeekOptions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.0.0
    • C++

    Description

      Arrow has an iso_week compute kernel that follows the ISO 8601 week date definition. Add another kernel (maybe named week) that lets you specify options for how exactly to count weeks, like MySQL's week function: https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_week.

      I think we can reuse the existing DayOfWeekOptions to specify the options, but we should change the description of the one_based_numbering argument to:

      Number from 1 if true and from 0 if false.

      removing the word "days" from it, so it can control whether days or weeks are numbered starting from 0 or 1 depending on where it's used.

      Attachments

        Issue Links

          Activity

            People

              rokm Rok Mihevc
              icook Ian Cook
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 15h 20m
                  15h 20m