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

[R] bindings for substr(), substring(), str_sub()

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0
    • R

    Description

      Followup to ARROW-10557, which implemented the C++

      current state:

      library(arrow)
      library(dplyr)
      library(stringr)
      
      # get animal products, year 20919
      open_dataset(
        "../cepii-datasets-arrow/parquet/baci_hs92",
        partitioning = c("year", "reporter_iso")
      ) %>% 
        filter(
          year == 2019,
          str_sub(product_code, 1, 2) == "01"
        ) %>% 
        collect()
      
      Error: Filter expression not supported for Arrow Datasets: str_sub(product_code, 1, 2) == "01"
      Call collect() first to pull data into R.
      

      Attachments

        Issue Links

          Activity

            People

              thisisnic Nicola Crane
              npr Neal Richardson
              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 - 4.5h
                  4.5h