aggregate_function_input_format
Format for AggregateFunction input during INSERT operations. Possible values:state— Binary string with the serialized state (the default). This is the default behavior where AggregateFunction values are expected as binary data.value— The format expects a single value of the argument of the aggregate function, or in the case of multiple arguments, a tuple of them. They will be deserialized using the corresponding IDataType or DataTypeTuple and then aggregated to form the state.array— The format expects an Array of values, as described in thevalueoption above. All elements of the array will be aggregated to form the state.
aggregate_function_input_format = 'value':
aggregate_function_input_format = 'array':
value and array formats are slower than the default state format as they require creating and aggregating values during insertion.
aggregate_functions_null_for_empty
Enables or disables rewriting all aggregate functions in a query, adding -OrNull suffix to them. Enable it for SQL standard compatibility. It is implemented via query rewrite (similar to count_distinct_implementation setting) to get consistent results for distributed queries. Possible values:- 0 — Disabled.
- 1 — Enabled.
aggregate_functions_null_for_empty = 0 it would produce:
aggregate_functions_null_for_empty = 1 the result would be: