Comment on page
LAST
Gets the last input value to arrive for each group.
LAST(X)
Type: any
The value to return.
Type: same as input
Returns last value of
X
that arrived for each group.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
LOWER(ordertype) as ordertype,
LAST(customer.email) as last_customer
FROM default_glue_catalog.upsolver_samples.orders_raw_data
WHERE $commit_time BETWEEN run_start_time() - PARSE_DURATION('1d') AND run_end_time()
GROUP BY 1
LIMIT 3;
ordertype | last_customer |
---|---|
pickup | |
shipping |
Last modified 1yr ago