[
https://issues.apache.org/jira/browse/ARROW-14253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17425537#comment-17425537
]
Dragoș Moldovan-Grünfeld commented on ARROW-14253:
--------------------------------------------------
{code:java}
══ Failed tests ════════════════════════════════════════════════════════════════
── Error (test-feather.R:247:5): Error messages are shown when the compression
algorithm lz4 is not found ──
Error: NotImplemented: Support for codec 'lz4' not built
/Users/dragos/Documents/arrow/cpp/src/arrow/ipc/reader.cc:458
util::Codec::Create(compression)/Users/dragos/Documents/arrow/cpp/src/arrow/ipc/reader.cc:514
DecompressBuffers(context.compression, context.options,
&filtered_columns)/Users/dragos/Documents/arrow/cpp/src/arrow/ipc/reader.cc:1080
ReadRecordBatchInternal( *message->metadata(), schema_,
field_inclusion_mask_, context,
reader.get())/Users/dragos/Documents/arrow/cpp/src/arrow/ipc/feather.cc:723
reader->ReadRecordBatch(i)
In order to read this file, you will need to reinstall arrow with additional
features enabled.
Set one of these environment variables before installing:
* LIBARROW_MINIMAL=false (for all optional features, including 'lz4')
* ARROW_WITH_LZ4=ON (for just 'lz4')
See https://arrow.apache.org/docs/r/articles/install.html for details
Backtrace:
█
1. ├─testthat::expect_error(read_feather(ft_file), msg, fixed = TRUE)
test-feather.R:247:4
2. │ └─testthat:::expect_condition_matching(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat:::.capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─arrow::read_feather(ft_file)
8. └─base::tryCatch(reader$Read(columns), error = read_compressed_error)
9. └─base:::tryCatchList(expr, classes, parentenv, handlers)
10. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
11. └─value[[3L]](cond)
[ FAIL 1 | WARN 24 | SKIP 41 | PASS 5675 ]
Error: Test failures
Execution halted
1 error x | 1 warning x | 1 note x
{code}
> [R] Update lz4 test failing locally due to different error message
> ------------------------------------------------------------------
>
> Key: ARROW-14253
> URL: https://issues.apache.org/jira/browse/ARROW-14253
> Project: Apache Arrow
> Issue Type: Bug
> Components: R
> Reporter: Dragoș Moldovan-Grünfeld
> Priority: Minor
> Fix For: 7.0.0
>
>
> When running on a local machine with {{ARROW_R_DEV}} set to true, the extra
> error messages printed out from the C++ code result in the test failing as
> the body of the error message doesn't match what is expected in the test.
> https://github.com/apache/arrow/blob/25a6f591d1f162106b74e29870ebd4012e9874cc/r/tests/testthat/test-feather.R#L247
--
This message was sent by Atlassian Jira
(v8.3.4#803005)