Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for 'scan' queries #108

Merged
merged 1 commit into from
Jan 6, 2018

Conversation

mistercrunch
Copy link
Member

No description provided.

pydruid/query.py Outdated
elif self.query_type == "scan":
nres = []
for item in self.result:
nres += [e for e in item.get('events')]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, this can be a single line:

nres = [e for item in self.result for e in item.get('events')]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

running out of line width :/, will keep as is

@mistercrunch mistercrunch merged commit bdf6bac into druid-io:master Jan 6, 2018
@mistercrunch mistercrunch deleted the scan_queries branch January 6, 2018 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants