Rafa de la Torre
e247e45f96
Qualify columns and improve if/else style
...
As suggested by Algunenano: qualify column names with the
table/subquery/cte to avoid name clashing, and polish the code style a
little.
2018-07-05 17:21:38 +02:00
Rafa de la Torre
a1807fd0c3
A better solution to the start-end problem
2018-07-05 12:39:26 +02:00
Rafa de la Torre
d937ce4982
Fix the min >= start and max <= end case (WIP)
...
This fixes the 'should get bins with min >= start and max <= end' test
case but probably breaks a number of other cases (those with no start
and/or no end).
2018-07-05 11:56:26 +02:00
Raul Marin
031e1253ca
Numeric histograms: Avoid conflicts with 'bin' named columns
2017-12-22 17:12:57 +01:00
Raul Marin
fcbf5ffcc5
Move sql helper functions to query-utils.js
2017-12-11 11:27:13 +01:00
Raul Marin
90c9ad18e0
Optimize histogram queries
2017-12-11 11:27:13 +01:00
Daniel García Aubert
4a89ad57d7
Remove '_' as prefix for template's context properties
2017-09-12 13:05:46 +02:00
Daniel García Aubert
c0cfdad7d1
Use hasOwnProperty method to check if histogram is a time-series
2017-09-12 10:38:53 +02:00
Daniel García Aubert
2576c3e7d5
Rename _shouldOverrideRange & _shouldOverrideBins methods
2017-09-12 10:14:55 +02:00
Daniel García Aubert
03babcb43b
Simplify condition and remove unused method
2017-09-11 19:31:38 +02:00
Daniel García Aubert
e3bffcd39d
Use inline functions to filter desired fields of the row
2017-09-11 19:24:01 +02:00
Daniel García Aubert
5fc2b46d56
Fix bad condition
2017-09-11 19:14:11 +02:00
Daniel García Aubert
fd9534797c
Minor refactors
2017-09-11 18:44:14 +02:00
Daniel García Aubert
38e7e71328
Implement template method pattern to format histogram query output
2017-09-11 17:19:02 +02:00
Daniel García Aubert
ec23bfc79b
Rename HistogramBase by BaseHistogram
2017-09-11 13:54:46 +02:00
Simon
5e9b2e45c7
creating HistogramBase with the common functions of NumericHistogram and DateHistogram
2017-09-11 11:32:20 +02:00