Add mode aggregation

This commit is contained in:
Javier Goizueta 2017-12-14 16:37:40 +01:00
parent ba6cca46a1
commit 507d105ab2

View File

@ -46,6 +46,9 @@ const SUPPORTED_AGGREGATE_FUNCTIONS = {
},
'max': {
sql: (column_name, params) => `max(${params.aggregated_column || column_name})`
},
'mode': {
sql: (column_name, params) => `cdb_mode(${params.aggregated_column || column_name})`
}
};