Newer Version Available
Aggregation for Salesforce Connect Custom Adapters
If you receive a COUNT() query, the selected
column has the value QueryAggregation.COUNT in its
aggregation property. The selected column is
provided in the columnsSelected property on the
tableSelection for the DataSource.QueryContext.
The following example illustrates how to apply the value of the aggregation property to handle COUNT() queries.
An aggregate query can still have filters, so your query method can be implemented like the following example to support basic aggregation queries, with or without filters.