AggregateFunction
Not matter it declarative or imperative, we have to construct a mutable aggBuffer, which we can constructed by aggBufferSchema.
Note that inputAggBufferAttributes is the same as aggBufferAttributes. It is the schema for input buffer instead of input row, used in merge, instead of update.