Function variant_get

Source
pub fn variant_get(
    input: &ArrayRef,
    options: GetOptions<'_>,
) -> Result<ArrayRef>
Expand description

Returns an array with the specified path extracted from the variant values.

The return array type depends on the as_type field of the options parameter

  1. as_type: None: a VariantArray is returned. The values in this new VariantArray will point to the specified path.
  2. as_type: Some(<specific field>): an array of the specified type is returned.