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

[C++] Temporal component extraction function for extracting epiyear

    XMLWordPrintableJSON

Details

    Description

      We currently support epi_week() via the us_week kernel. Can we support epi_year() too?

      epiyear in lubridate:
      https://github.com/tidyverse/lubridate/blob/10731d1876f8cb902f01f8edb2810a09ce5784a4/R/accessors-year.r#L48-L69

      I think this might be somewhat similar to MySQL's yearweek. It doesn't seem to be implemented universally, e.g. I don't think it's a thing in Postgres

      If this isn't something desirable to implement at the C++ level, it's still possible to implement at the R level after a number of other temporal-related functions are implemented.

      Attachments

        Issue Links

          Activity

            People

              rokm Rok Mihevc
              thisisnic Nicola Crane
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 4h
                  4h