[geo] provide more flexible Spatial controls (#4032)

Before this PR the only way to query lat/long is in the shape of 2
columns that contains lat and long.

Now we're adding 2 more options:
* a single column that has lat and long with a delimiter in between
* support for geohashes - geohashes are cool
This commit is contained in:
Maxime Beauchemin
2017-12-15 11:47:27 -08:00
committed by GitHub
parent cf1d9ce1e6
commit ec752b1378
15 changed files with 434 additions and 66 deletions

View File

@@ -200,7 +200,7 @@ class DruidFuncTestCase(unittest.TestCase):
client.query_builder.last_query.query_dict = {'mock': 0}
# client.topn is called twice
ds.run_query(
groupby, metrics, None, from_dttm, to_dttm, row_limit=100,
groupby, metrics, None, from_dttm, to_dttm, timeseries_limit=100,
client=client, order_desc=True, filter=[],
)
self.assertEqual(2, len(client.topn.call_args_list))