User-defined aggregate functions | BigQuery | Google Cloud Documentation