You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A major use case for Variant values in Parquet and Arrow is efficiently
processing JSON encoded data. Thus, an important capability is being able to
very efficiently writeVariant binary values (described in XXX and in VariantEncoding.md) to JSON.
This ticket covers an API to convert a single Variant to JSON. Other tickets
will cover converting multiple Variant values to JSON as well as converting
to/from Arrow Utf8* arrays and Variant arrays as well as writing this to/from
parquet.
Describe the solution you'd like
I would like an API to write a variant to json
Describe alternatives you've considered
I suggest an API like this:
// Use API from XXX to read variant valueslet metadata:&[u8] = ...;let value:&[u8] = ...;let variant = Variant::try_new(metadata, value);// Location for writing json bytes// Should be anything that implements std::io::Write or some other traitletmut json_buffer = vec![];// Convert the variant value to JSONvariant_to_json(&mut json_buffer, variant)?;// json_buffer now contains json encoded values
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
A major use case for Variant values in Parquet and Arrow is efficiently
processing JSON encoded data. Thus, an important capability is being able to
very efficiently write
Variant
binary values (described in XXX and inVariantEncoding.md) to JSON.
This ticket covers an API to convert a single Variant to JSON. Other tickets
will cover converting multiple
Variant
values to JSON as well as convertingto/from Arrow Utf8* arrays and
Variant
arrays as well as writing this to/fromparquet.
Describe the solution you'd like
I would like an API to write a variant to json
Describe alternatives you've considered
I suggest an API like this:
Additional context
The text was updated successfully, but these errors were encountered: