v.1.1.54362New Feature
Aggregation Behavior Change for Empty Sets in SQL
Aggregation withoutGROUP BYfor an empty set (such asSELECT count(*) FROM table WHERE 0) now returns a result with one row with null values for aggregate functions, in compliance with the SQL standard. To restore the old behavior (return an empty result), setempty_result_for_aggregation_by_empty_setto 1.
Why it matters
Previously, aggregation on empty data (e.g.,SELECT count(*) FROM table WHERE 0) returned an empty result set. This change ensures compliance with the SQL standard by returning a single row with NULL for aggregate functions when the data set is empty, improving consistency and predictability of query results.How to use it
By default, the new behavior is enabled. To revert to the old behavior of returning an empty result for such aggregations, set the settingempty_result_for_aggregation_by_empty_set to 1.