View Source arrow_variable_list_array (arrow v0.1.0)

Provides support for Arrow's Fixed-Size List Layout.

This module provides support for the Fixed-Size List Layout[1], which is an layout that supports storing a list of lists of a specific length and nesting.

invalid-input

Invalid Input

It is important that care is taken when passing input values to this module. For performance reasons, the input is not validated. The function crashes on nesting that is inconsitent: a. with the type, b. between elements. The behaviour on invalid input CANNOT BE GUARANTEED. Therefore, one must be careful to not to CRASH THE PROCESS or worse still, PRODUCE INVALID OUTPUT.

Any input must follow the following rules:

  1. The nesting of each element must be consistent with the type
  2. The nesting of each element must be consistent with each other
[1]: https://arrow.apache.org/docs/format/Columnar.html#variable-size-list-layout

Link to this section Summary

Link to this section Functions

Link to this function

from_erlang(Values, Type)

View Source
-spec from_erlang(Values :: list(), Type :: map() | arrow_type:arrow_type()) -> Array :: #array{}.