Function datafusion::physical_expr::array_expressions::array_element
source · pub fn array_element(
args: &[Arc<dyn Array>]
) -> Result<Arc<dyn Array>, DataFusionError>
Expand description
array_element SQL function
There are two arguments for array_element, the first one is the array, the second one is the 1-indexed index.
array_element(array, index)
For example:
array_element([1, 2, 3], 2) -> 2