Skip to content

Commit 0b3ae1b

Browse files
lionaneeshfjy
authored andcommitted
Add a way to add context->queryid. (#103)
1 parent 2420109 commit 0b3ae1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pydruid/query.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ def build_query(self, query_type, args):
262262
query_dict[key] = build_aggregators(val)
263263
elif key == 'post_aggregations':
264264
query_dict['postAggregations'] = Postaggregator.build_post_aggregators(val)
265+
elif key == 'context':
266+
query_dict['context'] = val
265267
elif key == 'datasource':
266268
query_dict['dataSource'] = self.parse_datasource(val, query_type)
267269
elif key == 'paging_spec':

0 commit comments

Comments
 (0)