Comment on page
LAST_ELEMENT
Gets the last element in the array
LAST_ELEMENT(input)
Name | Type | Description | Default Value |
---|---|---|---|
input | any | | |
input | Output |
---|---|
null::string | null |
array['a', 'b', 'c'] | c |
CREATE JOB function_operator_example
ADD_MISSING_COLUMNS = true
AS INSERT INTO default_glue_catalog.upsolver_samples.orders_transformed_data MAP_COLUMNS_BY_NAME
SELECT input,
LAST_ELEMENT(input) AS Output
FROM default_glue_catalog.upsolver_samples.orders_raw_data
LET input = null::string
WHERE time_filter()
LIMIT 1;
input | Output |
---|---|
null::string | null |
Last modified 3mo ago