Error in map2(.x, vec_index(.x), .f, ...) :
Caused by error:
! 1 must be a DataType, not FileSystemDatasetDatasetArrowObjectR6
16.
stop(fallback)
15.
signal_abort(cnd, .file)
14.
rlang::abort(message, ..., call = call, use_cli_format = TRUE,
.frame = .frame)
13.
cli::cli_abort(message, location = i, name = name, parent = cnd,
call = error_call, class = "purrr_error_indexed")
12.
h(simpleError(msg, call))
11.
.handleSimpleError(function (cnd)
{
if (i == 0L) {
} ...
10.
stop(name, " must be a DataType, not ", class(type), call. = FALSE)
9.
.f(.x[[i]], .y[[i]], ...)
8.
call_with_cleanup(map2_impl, environment(), .type, .progress,
n, names, i)
7.
withCallingHandlers(expr, error = function(cnd) {
if (i == 0L) {
}
else { ...
6.
with_indexed_errors(i = i, names = names, error_call = .purrr_error_call,
call_with_cleanup(map2_impl, environment(), .type, .progress,
n, names, i))
5.
map2_("list", .x, .y, .f, ..., .progress = .progress)
4.
map2(.x, vec_index(.x), .f, ...)
3.
imap(.list, as_type)
2.
Schema__from_list(imap(.list, as_type))
1.
schema(seattle_csv)
My arrow version is 12.0.1.1.
It seems that schema() only creates a schema, but does not extract one anymore.