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

Dimension object has no attribute in_ #92

Open
fufjvnvnf opened this issue Jun 21, 2017 · 2 comments
Open

Dimension object has no attribute in_ #92

fufjvnvnf opened this issue Jun 21, 2017 · 2 comments

Comments

@fufjvnvnf
Copy link

fufjvnvnf commented Jun 21, 2017

I'm doing virtually the same thing as the last example on the github page, where I try to create a filter with Dimension(something).in_([...]), but the error in the title showed up. Is this a problem with python version? I'm using 3.5.3. I've also checked that my pydruid version is 0.3.1.

@dakra
Copy link
Contributor

dakra commented Jun 21, 2017

Documentation seems to be pretty outdated. And looking through the
history not sure if there ever was a in_ method on
Dimension. Should be an easy patch but for now you can just use

filters.Filter(type='in', dimension='dim', values=['val1', 'val2', 'val3']))

@ratb3rt
Copy link
Contributor

ratb3rt commented Jul 11, 2017

Bah - my bad, I removed the code for the _in syntax between the README changes and the PR...

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

No branches or pull requests

3 participants