Raul Marin
089be35b5d
Aggregation count: Do not return null categories
2018-03-08 18:13:20 +01:00
Rafa de la Torre
251fe96509
Cosmetic fix, as suggested in PR
2018-02-12 19:24:53 +01:00
Rafa de la Torre
065f56e161
Improve the speed of the aggregation dataview
...
Improve the performance of the aggregation dataview.
Instead of using a CTE (WITH) for filtered_source, which is only used in
one place to calculate ranks, inject it as a subquery.
This way the planner has a chance to ignore uneeded columns as well as
to parallelize the exectution of the window function (WindowAgg in the
query plan).
That is the part that takes most of the time of the query.
The improvement is about 20-40% in speed on PG10 with 4 cores.
2018-02-07 18:10:13 +01:00
Eneko Lakasta
2bd4c9e814
Merge pull request #851 from CartoDB/1259-category-widget-error-group-by-missing
...
use original column name in group by instead of alias
2018-01-29 15:38:07 +01:00
Simon Martín
8c839e214d
changing the value of string
2018-01-26 15:44:21 +01:00
Simon Martín
99421b613c
moving 'other' outside of the query allowing queries of different types
2018-01-26 15:24:21 +01:00
Simon Martín
bc7a556297
removing category cast to string in aggregation
2018-01-26 12:37:10 +01:00
Eneko Lakasta
220f1d6a73
use original column name in group by instead of alias
2018-01-18 15:27:54 +01:00
Daniel García Aubert
743bb0723b
Add query param to define the number of categories to be ranked
2017-11-07 16:14:47 +01:00
Simon
f63fab40ed
Removing 'self' vars using arrow functions
2017-09-18 11:34:18 +02:00
Daniel García Aubert
51907b9545
Apply extract method to condition
2017-09-14 16:56:55 +02:00
Daniel García Aubert
1f3b0beddf
Fix missing parameter
2017-09-14 16:47:05 +02:00
Daniel García Aubert
38e2c040d1
Use template string to escape literals
2017-09-14 16:45:45 +02:00
Daniel García Aubert
46860541fe
Apply extract method to validate input options
2017-09-14 16:42:25 +02:00
Daniel García Aubert
c2e99219ef
Use ES6 goodies to refactor format method
2017-09-14 16:30:46 +02:00
Daniel García Aubert
cc2cf78264
Rename all 'widget' ocurrences by 'dataview'
2017-09-14 16:12:39 +02:00
Daniel García Aubert
746292610a
Rename debug namespace
2017-09-14 16:10:23 +02:00
Daniel García Aubert
b05083bcfc
Move search's templates along aggregation's templates
2017-09-14 16:09:44 +02:00
Daniel García Aubert
cd13107a4d
Use ES6 let & const to declare variables
2017-09-14 16:08:12 +02:00
Daniel García Aubert
46254eaf74
rename BaseWidget by BaseDataview
2017-09-14 15:59:15 +02:00
Daniel García Aubert
086eff01a9
Use ES6 class syntax
2017-09-14 15:57:18 +02:00
Daniel García Aubert
02949003a9
Build search query in two steps
2017-09-14 15:48:54 +02:00
Daniel García Aubert
0a894da0df
Remove prefix to context's properties
2017-09-14 15:27:57 +02:00
Daniel García Aubert
e2ab48bee2
Remove prefix to context's properties
2017-09-14 15:22:58 +02:00
Daniel García Aubert
132fce84c5
Remove string template in the middle
2017-09-14 15:07:30 +02:00
Daniel García Aubert
b1508af007
Remove prefix to context's props in order to share it throught all templates avoiding to duplicate passing custom params again and again
2017-09-14 13:14:12 +02:00
Daniel García Aubert
65dca454f4
Move aggragation query to its own query template
2017-09-14 12:18:03 +02:00
Daniel García Aubert
3682740f08
Build aggregation query with string templates avoiding to join all inner templates
2017-09-14 12:01:41 +02:00
Daniel García Aubert
a434015d5b
Move categories CTE template out of aggregation class
2017-09-14 11:27:03 +02:00
Daniel García Aubert
2f4f719f55
Use object properties in class method instead of passing them as parameters
2017-09-13 19:42:25 +02:00
Daniel García Aubert
75645e2d7a
Use string templates to build categories CTE sql
2017-09-13 19:34:09 +02:00
Daniel García Aubert
4d1a53c20f
Use string templates to build error message
2017-09-13 19:27:25 +02:00
Daniel García Aubert
ee471184b9
Use default values for input params
2017-09-13 19:19:25 +02:00
Daniel García Aubert
4518b7cb6e
Declare requirement with const keyword
2017-09-13 19:17:16 +02:00
Daniel García Aubert
306df5be5a
Replace underscore's function by ES6 equivalents
2017-09-13 19:16:08 +02:00
Daniel García Aubert
33e8657e35
Declare constants with const keyword
2017-09-13 18:40:09 +02:00
Daniel García Aubert
6fd3388fa2
Replace dot templates by ES6 string templates
2017-09-13 18:38:54 +02:00
Daniel
5ea5c1b2dc
Merge pull request #708 from CartoDB/11245-aggregation-search
...
widgets: support for aggregation in search results
2017-07-11 09:44:33 +02:00
Carlos Matallín
dd934a3913
linter
2017-07-07 17:44:32 +02:00
Carlos Matallín
f7a763b637
widgets: add aggregation for search results
2017-07-07 17:09:17 +02:00
Daniel García Aubert
115d8fe685
Handle special float values only when aggregation columns is float
2017-06-15 19:07:31 +02:00
Daniel García Aubert
551b6d409a
Remove bad condition
2017-06-13 09:44:53 +02:00
Daniel García Aubert
3ae66e4143
Do not filter special values out if aggregation column is not defined
2017-06-13 09:30:43 +02:00
Daniel García Aubert
cb7ec5d556
Fix jshint typos
2017-06-12 19:49:58 +02:00
Daniel García Aubert
8b2fa27ba7
Calculate aggregation filtering out special float values
2017-06-12 19:45:06 +02:00
Daniel García Aubert
962fa05574
Remove console
2017-06-12 19:28:49 +02:00
Daniel García Aubert
7b5111614c
Summarize special float values for ranked aggregation
2017-06-12 19:21:41 +02:00
Daniel García Aubert
e60bb770db
Summarizes infinity and NaN values
2017-06-12 18:55:33 +02:00
Mario de Frutos
b446c31cbc
Other category now uses the selected aggregated function ( #633 )
...
* Other category in category widget uses selected aggregation function
Fixes https://github.com/CartoDB/Windshaft-cartodb/issues/628
2017-03-02 10:48:20 +01:00
Daniel García Aubert
a4a1fb930a
Be able to not compute NULL categories and null values wheter aggregation operation is not 'count'
2017-01-17 17:09:17 +01:00