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

[R] filter doesn't accept negative numbers as valid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0
    • R

    Description

      Reprex with nyc-taxi data

       

      R> library(arrow)
      R> library(dplyr)
      R> packageVersion("arrow")
      [1] '3.0.0.9000'
      R> 
       R> 
       R> open_dataset("nyc-taxi", partitioning = "year") %>% 
       filter(trip_distance >= -1) %>% 
       head(1) %>% 
       collect()
      Error: Invalid: Function subtract_checked accepts 2 arguments but attempted to look up kernel(s) with 1
      Backtrace:
       x
      1. +-[ `%>%`(...) ]
      2. +-[ dplyr::collect(...) ]
      3. +-[ utils::head(...) ]
      4. \-arrow:::head.arrow_dplyr_query(., 1)
      5. \-arrow:::head.Dataset(x, n, ...)
      6. \-Scanner$create(ensure_group_vars(x))
      7. \-Scanner$create(...)
      8. \-scanner_builder$Filter(filter)
      9. \-arrow:::dataset___ScannerBuilder__Filter(self, expr)

       

      Attachments

        Issue Links

          Activity

            People

              npr Neal Richardson
              boshek Sam Albers
              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 - 40m
                  40m