arrow_metadata() reads the custom metadata of a schema, or of the
schema of an array or stream, as a named character vector. Values that
are not valid UTF-8 or that contain a NUL byte are kept as raw vectors,
and the result is then a named list.
Value
A named character vector, or a named list when a value is binary. An empty named character vector when there is no metadata.
Examples
schema <- arrow_schema("i")
arrow_metadata(schema) <- c(origin = "zuarrow")
arrow_metadata(schema)
#> origin
#> "zuarrow"