You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "paleolimbot (via GitHub)" <gi...@apache.org> on 2023/02/28 17:19:48 UTC

[GitHub] [arrow-nanoarrow] paleolimbot opened a new issue, #131: [R] Checking package on R 3.6 results in test failures

paleolimbot opened a new issue, #131:
URL: https://github.com/apache/arrow-nanoarrow/issues/131

   ...almost certainly because of `stringsAsFactors`:
   
   ```
   Failed to create bus connection: No such file or directory
   [ FAIL 11 | WARN 1 | SKIP 40 | PASS 768 ]
   
   ══ Skipped tests ═══════════════════════════════════════════════════════════════
   • arrow cannot be loaded (40)
   
   ══ Failed tests ════════════════════════════════════════════════════════════════
   ── Failure ('test-altrep.R:80'): nanoarrow_altrep_chr_force_materialize() forces materialization ──
   nanoarrow_altrep_force_materialize(x_altrep_df, recursive = TRUE) (`actual`) not identical to 1L (`expected`).
   
     `actual`: 0
   `expected`: 1
   ── Failure ('test-array.R:108'): schemaless array list interface works for nested types ──
   array$children[[2]]$buffers has length 2, not length 3.
   ── Failure ('test-array.R:214'): array list interface works for nested types ───
   array$children$b$buffers[[2]] inherits from 'nanoarrow_buffer_data_int32'/'nanoarrow_buffer' not 'nanoarrow_buffer_data_offset32'.
   ── Failure ('test-array.R:219'): array list interface works for nested types ───
   info_recursive$children$b$buffers[[2]] inherits from 'nanoarrow_buffer_data_int32'/'nanoarrow_buffer' not 'nanoarrow_buffer_data_offset32'.
   ── Error ('test-convert-array-stream.R:105'): convert array stream works for struct-style vectors ──
   Error in `infer_nanoarrow_ptype(schema)`: Can't infer R vector type for `zone` <dictionary(int32)<string>>
   Backtrace:
       ▆
    1. ├─testthat::expect_identical(convert_array_stream(stream), raw_posixlt) at test-convert-array-stream.R:105:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─nanoarrow::convert_array_stream(stream)
    5. │ └─nanoarrow::infer_nanoarrow_ptype(schema)
    6. └─nanoarrow:::infer_ptype_other(`<nnrrw_sc>`)
    7.   └─nanoarrow:::stop_cant_infer_ptype(schema, n = -1)
   ── Error ('test-convert-array.R:67'): convert to vector works for data.frame ───
   Error in `convert_array.default(array, NULL)`: Can't infer R vector type for `b` <dictionary(int32)<string>>
   Backtrace:
       ▆
    1. ├─testthat::expect_identical(convert_array(array, NULL), df) at test-convert-array.R:67:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─nanoarrow::convert_array(array, NULL)
    5. ├─nanoarrow:::convert_array.default(array, NULL)
    6. └─nanoarrow:::infer_ptype_other(`<nnrrw_sc>`)
    7.   └─nanoarrow:::stop_cant_infer_ptype(schema, n = -1)
   ── Error ('test-convert-array.R:84'): convert to vector works for partial_frame ──
   Error in `infer_nanoarrow_ptype(array)`: Can't infer R vector type for `b` <dictionary(int32)<string>>
   Backtrace:
       ▆
    1. ├─testthat::expect_identical(...) at test-convert-array.R:84:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─nanoarrow::convert_array(array, vctrs::partial_frame())
    5. ├─nanoarrow:::convert_array.vctrs_partial_frame(array, vctrs::partial_frame())
    6. │ └─nanoarrow::infer_nanoarrow_ptype(array)
    7. └─nanoarrow:::infer_ptype_other(`<nnrrw_sc>`)
    8.   └─nanoarrow:::stop_cant_infer_ptype(schema, n = -1)
   ── Error ('test-convert-array.R:112'): convert to vector works for tibble ──────
   Error in `convert_array.default(array, tibble::tibble(a = integer(), b = character()))`: Conversion to dictionary-encoded array is not supported
   Backtrace:
       ▆
    1. ├─testthat::expect_identical(...) at test-convert-array.R:112:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─nanoarrow::convert_array(...)
    5. └─nanoarrow:::convert_array.default(...)
   ── Failure ('test-convert-array.R:136'): convert to vector works for struct-style vectors ──
   convert_array(array) (`actual`) not identical to as.data.frame(unclass(as.POSIXlt("2021-01-01", tz = "America/Halifax"))) (`expected`).
   
   `actual$zone` is a character vector ('AST')
   `expected$zone` is an S3 object of class <factor>, an integer vector
   ── Error ('test-infer-ptype.R:65'): infer_nanoarrow_ptype() works for basic types ──
   Error in `infer_nanoarrow_ptype(as_nanoarrow_array(data.frame(x = character())))`: Can't infer R vector type for `x` <dictionary(int32)<string>>
   Backtrace:
       ▆
    1. ├─testthat::expect_identical(...) at test-infer-ptype.R:65:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─nanoarrow::infer_nanoarrow_ptype(as_nanoarrow_array(data.frame(x = character())))
    5. └─nanoarrow:::infer_ptype_other(`<nnrrw_sc>`)
    6.   └─nanoarrow:::stop_cant_infer_ptype(schema, n = -1)
   ── Error ('test-util.R:57'): vector fuzzers work ───────────────────────────────
   Error in `FUN(X[[i]], ...)`: Don't know how to generate vector for type factor
   Backtrace:
       ▆
    1. └─nanoarrow:::vec_gen(ptype, n = 123) at test-util.R:57:2
    2.   ├─nanoarrow:::new_data_frame(...)
    3.   │ └─base::structure(x, row.names = c(NA, nrow), class = "data.frame")
    4.   └─base::lapply(...)
    5.     └─nanoarrow (local) FUN(X[[i]], ...)
   
   [ FAIL 11 | WARN 1 | SKIP 40 | PASS 768 ]
   Error: Test failures
   Execution halted
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-nanoarrow] paleolimbot closed issue #131: [R] Checking package on R 3.6 results in test failures

Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot closed issue #131: [R] Checking package on R 3.6 results in test failures
URL: https://github.com/apache/arrow-nanoarrow/issues/131


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org