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

[R] Fix for failing test after lubridate 1.9 release

    XMLWordPrintableJSON

Details

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

    Description

      ══ Failed tests ════════════════════════════════════════════════════════════════
      ── Failure ('test-dplyr-funcs-datetime.R:2163'): ym, my & yq parsers ───────────
      `object` (`actual`) not equal to `expected` (`expected`).
      
      [2] "1970-04-01"                 - NA                             [2]
      [3] "2020-01-01"                 - NA                             [3]
      [4] "2009-10-01"                 | "2009-10-01"                   [4]
      [5] "1975-01-01"                 | "1975-01-01"                   [5]
      [6] NA                           | NA                             [6]
      Backtrace:
          ▆
       1. └─arrow:::compare_dplyr_binding(...) at test-dplyr-funcs-datetime.R:2163:2
       2.   └─arrow:::expect_equal(via_batch, expected, ...) at tests/testthat/helper-expectation.R:115:4
       3.     └─testthat::expect_equal(...) at tests/testthat/helper-expectation.R:42:4
      ── Failure ('test-dplyr-funcs-datetime.R:2163'): ym, my & yq parsers ───────────
      `object` (`actual`) not equal to `expected` (`expected`).
      
      actual vs expected
                      qy_date_from_numeric qy_date_from_numeric2
        actual[1, ]             2007-07-01            2007-07-01
      - actual[2, ]             1970-04-01            1970-04-01
      + expected[2, ]                   NA                    NA
      - actual[3, ]             2020-01-01            2020-01-01
      + expected[3, ]                   NA                    NA
        actual[4, ]             2009-10-01            2009-10-01
        actual[5, ]             1975-01-01            1975-01-01
        actual[6, ]                     NA                    NA
      
          actual$qy_date_from_numeric | expected$qy_date_from_numeric    
      [1] "2007-07-01"                | "2007-07-01"                  [1]
      [2] "1970-04-01"                - NA                            [2]
      [3] "2020-01-01"                - NA                            [3]
      [4] "2009-10-01"                | "2009-10-01"                  [4]
      [5] "1975-01-01"                | "1975-01-01"                  [5]
      [6] NA                          | NA                            [6]
      
          actual$qy_date_from_numeric2 | expected$qy_date_from_numeric2    
      [1] "2007-07-01"                 | "2007-07-01"                   [1]
      [2] "1970-04-01"                 - NA                             [2]
      [3] "2020-01-01"                 - NA                             [3]
      [4] "2009-10-01"                 | "2009-10-01"                   [4]
      [5] "1975-01-01"                 | "1975-01-01"                   [5]
      [6] NA                           | NA                             [6]
      Backtrace:
          ▆
       1. └─arrow:::compare_dplyr_binding(...) at test-dplyr-funcs-datetime.R:2163:2
       2.   └─arrow:::expect_equal(via_table, expected, ...) at tests/testthat/helper-expectation.R:129:4
       3.     └─testthat::expect_equal(...) at tests/testthat/helper-expectation.R:42:4
      
      [ FAIL 2 | WARN 2 | SKIP 32 | PASS 9071 ]
      Error: Test failures
      

      Attachments

        Issue Links

          Activity

            People

              paleolimbot Dewey Dunnington
              npr Neal Richardson
              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 - 1h 50m
                  1h 50m