Merge pull request #743 from CartoDB/718-quantiles_turbo_carto

Do not use distinct when calculating quantiles
This commit is contained in:
Javier Torres 2017-09-07 15:55:47 +02:00 committed by GitHub
commit 0eb57f6801
3 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,11 @@
# Changelog # Changelog
## 3.12.9
Released 2017-mm-dd
Bug fixes:
- Do not use distinct when calculating quantiles. #743
## 3.12.8 ## 3.12.8
Released 2017-09-07 Released 2017-09-07

View File

@ -21,10 +21,10 @@ function createTemplate(method) {
} }
var methods = { var methods = {
quantiles: 'CDB_QuantileBins(array_agg(distinct({{=it._column}}::numeric)), {{=it._buckets}}) as quantiles', quantiles: 'CDB_QuantileBins(array_agg({{=it._column}}::numeric), {{=it._buckets}}) as quantiles',
equal: 'CDB_EqualIntervalBins(array_agg({{=it._column}}::numeric), {{=it._buckets}}) as equal', equal: 'CDB_EqualIntervalBins(array_agg({{=it._column}}::numeric), {{=it._buckets}}) as equal',
jenks: 'CDB_JenksBins(array_agg(distinct({{=it._column}}::numeric)), {{=it._buckets}}) as jenks', jenks: 'CDB_JenksBins(array_agg({{=it._column}}::numeric), {{=it._buckets}}) as jenks',
headtails: 'CDB_HeadsTailsBins(array_agg(distinct({{=it._column}}::numeric)), {{=it._buckets}}) as headtails' headtails: 'CDB_HeadsTailsBins(array_agg({{=it._column}}::numeric), {{=it._buckets}}) as headtails'
}; };
var methodTemplates = Object.keys(methods).reduce(function(methodTemplates, methodName) { var methodTemplates = Object.keys(methods).reduce(function(methodTemplates, methodName) {

View File

@ -1,7 +1,7 @@
{ {
"private": true, "private": true,
"name": "windshaft-cartodb", "name": "windshaft-cartodb",
"version": "3.12.8", "version": "3.12.9",
"description": "A map tile server for CartoDB", "description": "A map tile server for CartoDB",
"keywords": [ "keywords": [
"cartodb" "cartodb"