Javier Goizueta
51c3215137
Change UNION by UNION ALL in tests
...
It seems UNION (without ALL) can be much slower in recent PG versions
2018-07-17 12:42:33 +02:00
Javier Goizueta
e5d4369203
Fix test
2018-07-16 14:59:26 +02:00
Javier Goizueta
e1ec38446d
Add aggregation test with buffer overlapping cells partially
...
Also fix resolution parameter incrrectly placed in some tests
2018-07-16 14:27:39 +02:00
Javier Goizueta
2d102c4810
Compensate for bbox lack of accuracy
2018-07-16 12:44:30 +02:00
Javier Goizueta
e59d0f520a
Restore tests
2018-07-16 12:02:37 +02:00
Javier Goizueta
2063ac15ee
Fix long lines
2018-07-16 11:58:56 +02:00
Javier Goizueta
92ef0a60fc
Test aggregation accuracy
...
This tests #1001
2018-07-15 22:17:00 +02:00
Javier Goizueta
e21ab12e4c
Test that tiles do not contain partially aggregated clusters
...
This tests #889
2018-07-15 22:15:57 +02:00
Javier Goizueta
9cbcd43fda
Fix another test
2018-07-11 16:56:37 +02:00
Javier Goizueta
7cadbcc533
Fix tests, this time for good :fingers_crossed:
2018-07-11 16:47:10 +02:00
Javier Goizueta
d3a3a7353a
Fix tests
...
They were not numerical accuracy independent, as intended
2018-07-11 16:34:39 +02:00
Javier Goizueta
e17dd4b5fa
Make tests independent of coordinate accuracy by not placing points near tile boundaries
2018-07-11 13:19:07 +02:00
Javier Goizueta
8442a9a711
Shorten long lines
2018-07-11 11:29:22 +02:00
Javier Goizueta
c07b3de43d
Adapt tests for more accurate PROJ
...
Fixes #994
With exact point 0,0 transformations, the point is between tiles and can appear in several
2018-07-11 10:33:58 +02:00
Raul Marin
9bbbe9e7c1
Make POSTGIS_VERSION detection automatic
2018-06-11 14:47:39 +02:00
Javier Goizueta
391ac51f0f
Implement metadata queries with plain Promises
...
Remove usage of PhasedExecution
This achives better query execution granularity and
removes questionable usage of shared results object.
It introduces a couple of behavior changes:
* estimatedFeatureCount desn't ignore errors now
* sample always uses estimatedFeatureCount,even if the actual count is also computed.
2018-05-18 15:33:07 +02:00
Javier Goizueta
b8109401d1
Tests for metadata with aggregation
2018-05-13 13:05:39 +02:00
Javier Goizueta
9818d8bb6c
Merge branch 'master' into cartovl-cartodb_id
2018-04-05 16:02:03 +02:00
Javier Goizueta
f7fad736c3
Add test for uniqueness of aggregated cartodb_id
2018-04-05 16:01:29 +02:00
Javier Goizueta
3d36802686
Tests for columns present in aggregation MVTs
2018-04-04 16:58:11 +02:00
Javier Goizueta
dc706aeb43
Fix bug with dimension aliases
...
The point-sample aggregation query failed if dimensions had alias different from the base columns
2018-04-04 16:29:40 +02:00
Javier Goizueta
6ada8ba6a2
Implement aggregation filters
2018-03-21 17:01:32 +01:00
Javier Goizueta
80604b739a
Add test for aggregation with attributes
...
This reveals #860
2018-01-31 18:56:24 +01:00
Javier Goizueta
debb174af4
Add test for aggregation without the_geom
...
Only the_geom_webmercator is required for aggregation
See #841
2018-01-29 15:44:24 +01:00
Javier Goizueta
7c9b4b7283
Add test to check that cartodb_id is preseent in aggregations
...
See #846
This revealss that point-grid aggregation is missing cartodb_id
2018-01-29 12:40:59 +01:00
Daniel
ee0405da1e
Merge pull request #836 from CartoDB/disable-default-aggregation
...
Add test to check layer aggregation disabling
2018-01-03 13:09:31 +01:00
Daniel García Aubert
1f30367e59
Add test to check layer aggregation disabling
2018-01-03 12:40:00 +01:00
Daniel García Aubert
60005e2f7f
Fix bad assertion
2018-01-03 12:24:07 +01:00
Daniel García Aubert
1c7da2c4b3
Going green: do not fail when map-config is vector-only and a layer doesn't have points
2018-01-03 12:00:25 +01:00
Daniel García Aubert
3799dd2574
Going red: fail when vector only map-config has a polygon layer
2018-01-03 11:14:20 +01:00
Daniel García Aubert
9fbc56b82c
Remove FIXME notes to test against PostGIS vector renderer
2017-12-28 13:13:32 +01:00
Daniel García Aubert
418c8691d1
Support default full-sample aggregation for postgis vector renderer
2017-12-27 20:08:43 +01:00
Javier Goizueta
54f32113f3
Add some aggregation tests
2017-12-22 15:45:34 +01:00
Javier Goizueta
19bf079f2d
Exclude test from PostGIS 2.4
2017-12-22 15:45:14 +01:00
Javier Goizueta
e9a4fc4b2c
Use full-sample aggregation only as default
...
Sampling is performed only when placement, columns or dimensions are specified;
otherwise the regular centroid/grid-point/grid-center is used without sampling.
2017-12-22 11:31:33 +01:00
Daniel García Aubert
7f64d15944
Merge branch 'master' into full-sample
2017-12-20 15:58:58 +01:00
Daniel García Aubert
20366cedb4
Skip test for PostGis 2.4
2017-12-20 14:53:34 +01:00
Daniel García Aubert
a102d1d366
jshint, I hate you
2017-12-20 14:41:29 +01:00
Daniel García Aubert
4b97b4fd26
Fix typo
2017-12-20 14:35:47 +01:00
Daniel García Aubert
4946ca688c
Add test to check full-sample query
2017-12-19 16:17:13 +01:00
Daniel García Aubert
d2828ecaff
Update test
2017-12-19 13:07:57 +01:00
Daniel García Aubert
bdce2f95f2
Add validations for columns
2017-12-18 20:42:26 +01:00
Daniel García Aubert
2dda0a80da
Improve error context
2017-12-18 19:35:12 +01:00
Daniel García Aubert
0bca3d6f33
Validate placement, threshold and resolution
2017-12-18 13:42:27 +01:00
Javier Goizueta
877ed63090
Add tests for the different aggregation placement values
2017-12-15 11:14:17 +01:00
Daniel García Aubert
e4407ece84
Merge branch 'mapconfig-aggregation' of github.com:CartoDB/Windshaft-cartodb into mapconfig-aggregation
2017-12-14 16:39:07 +01:00
Javier Goizueta
753ada0e76
Add cartodb_id to test datasets
2017-12-14 16:36:24 +01:00
Daniel García Aubert
d311dccce8
Add test to check tangram compatibility
2017-12-14 16:35:09 +01:00
Daniel García Aubert
a987f6ac05
Fix issue when the sql has single quotes defined and the aggregation metadata query was not able to estimate row count
2017-12-14 14:14:55 +01:00
Daniel García Aubert
bcfc43a517
jshint, my old friend
2017-12-14 11:22:00 +01:00