-
Notifications
You must be signed in to change notification settings - Fork 590
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
Mapd session #1796
Mapd session #1796
Conversation
|
Thanks for the review @cpcloud! |
@ian-r-rose Can you take a look at this and make sure that it matches our discussion re OmniSci on #1796? Author: Phillip Cloud <cpcloud@gmail.com> Closes #1798 from cpcloud/fix-py35-deps and squashes the following commits: 2bace3f [Phillip Cloud] Add pydata-google-auth to pip deps in conda env requirements 4216d7a [Phillip Cloud] Fix Python 3.5 dependency versions
|
@ian-r-rose Can you rebase to pick up the changes from #1798? |
0d646ac
to
403cbef
Compare
2b2cafb
to
c60e105
Compare
|
@ian-r-rose Looks like there's a test failing that's related to your changes: https://circleci.com/gh/ian-r-rose/ibis/80?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nit, then this is good to go.
ibis/mapd/client.py
Outdated
| ) | ||
| if session_id: | ||
| if self.version < pkg_resources.parse_version('0.12.0'): | ||
| raise Exception('Must have pympad > 0.12 to use session ID') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add an Exception subclass for this? E.g., PyMapDVersionError. There's also a typo in pympad.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing.
|
@cpcloud @ian-r-rose it would also be helpful if one could pass an existing pymapd connection object to Ibis instead of having to build a connection every time. Is this something we could / should include in this PR? |
|
LGTM. Merging! Thanks. |
|
@jp-harvey I think we'd probably want another API like |
|
Awesome, thanks for the reviews @cpcloud! Do you have any thoughts about @jp-harvey's suggestion? |
pymapdrecently gained the ability to connect via a pre-authenticated session ID. It would be nice if the Ibis mapd connector could do that as well. cc @xmnlab