Skip to content

Commit

Permalink
scan query: use columns instead of dimensions (#148)
Browse files Browse the repository at this point in the history
Scan queries use the columns parameter (string array) to define the
dimension to return [1]. Currently, pydruid is incorrectly filling a
dimensions parameter, which ends up being ignored (and the scan query
always return all dimensions).

[1] http://druid.io/docs/latest/querying/scan-query.html

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
  • Loading branch information
adelcast authored and mistercrunch committed Jan 31, 2019
1 parent 9303493 commit 0a59a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydruid/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def scan(self, args):
"""
query_type = 'scan'
valid_parts = [
'datasource', 'granularity', 'filter', 'dimensions', 'metrics',
'datasource', 'granularity', 'filter', 'columns', 'metrics',
'intervals', 'limit',
]
self.validate_query(query_type, valid_parts, args)
Expand Down

0 comments on commit 0a59a70

Please sign in to comment.