Skip to content

[Variant] Support StringView and LargeString in ´batch_json_string_to_variant` #8145

@alamb

Description

@alamb

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Specifically the code here only supports StringArray:

let input_string_array = match input.as_any().downcast_ref::<StringArray>() {
Some(string_array) => Ok(string_array),
None => Err(ArrowError::CastError(
"Expected reference to StringArray as input".into(),
)),
}?;

Describe the solution you'd like
I would like to be able to convert data other than just StringArray such as LargeStringArray and StringViewArray

Describe alternatives you've considered

Add support and tests for LargeStringArray and StringViewArray to batch_json_string_to_variant

Additional context

Metadata

Metadata

Assignees

Labels

parquetChanges to the parquet crateparquet-variantparquet-variant* crates

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions