Function deriveDuckDbAggregateOutputFields