Class ArrayAggAccumulator

java.lang.Object
dev.frostlake.functions.aggregate.ArrayAggAccumulator
All Implemented Interfaces:
AggregateFunction.Accumulator

public class ArrayAggAccumulator extends Object implements AggregateFunction.Accumulator
Accumulator for ARRAY_AGG(expr). SQL NULL inputs are SKIPPED (Snowflake: ARRAY_AGG ignores NULLs, so an all-NULL group yields []) — keeping them produced [null] where a loader's ARRAY_AGG(IFF(cond, obj, NULL)) idiom expects an empty array. A VARIANT JSON null (the text "null") is a value, not a SQL NULL, and is kept.