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

Mapd session #1796

Merged
merged 9 commits into from
May 29, 2019
Merged

Mapd session #1796

merged 9 commits into from
May 29, 2019

Conversation

ian-r-rose
Copy link
Contributor

pymapd recently 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

ibis/mapd/tests/conftest.py Outdated Show resolved Hide resolved
ci/requirements-3.5-dev.yml Outdated Show resolved Hide resolved
ibis/mapd/api.py Outdated Show resolved Hide resolved
ibis/mapd/tests/test_client.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
@cpcloud cpcloud added this to the 1.1.0 milestone May 25, 2019
@ian-r-rose
Copy link
Contributor Author

Thanks for the review @cpcloud!

cpcloud added a commit that referenced this pull request May 27, 2019
@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
@cpcloud
Copy link
Member

cpcloud commented May 27, 2019

@ian-r-rose Can you rebase to pick up the changes from #1798?

@cpcloud
Copy link
Member

cpcloud commented May 28, 2019

@cpcloud cpcloud self-assigned this May 28, 2019
ibis/mapd/tests/test_client.py Outdated Show resolved Hide resolved
Copy link
Member

@cpcloud cpcloud left a 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.

)
if session_id:
if self.version < pkg_resources.parse_version('0.12.0'):
raise Exception('Must have pympad > 0.12 to use session ID')
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing.

@jp-harvey
Copy link
Contributor

@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?

@cpcloud
Copy link
Member

cpcloud commented May 29, 2019

LGTM. Merging! Thanks.

@cpcloud
Copy link
Member

cpcloud commented May 29, 2019

@jp-harvey I think we'd probably want another API like ibis.mapd.from_pymapd(existing_connection). Can you open an issue to track this?

@ian-r-rose
Copy link
Contributor Author

Awesome, thanks for the reviews @cpcloud! Do you have any thoughts about @jp-harvey's suggestion?

@cpcloud cpcloud merged commit f2df192 into ibis-project:master May 29, 2019
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.

3 participants