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

Fix erorrs in apache thrift compatibility #10

Merged
merged 1 commit into from
Feb 7, 2018

Conversation

igorivanov
Copy link
Contributor

There are some errors in current Apache thrift compatibility in a thrift_sasl module - these changes remain from the previous version. This errors led to issue in impyla: cloudera/impyla#268

@mariusvniekerk
Copy link
Contributor

I wonder if in the interest of compatibility with older thrift libraries we want to determine the method calls in a way that works with thrift 0.10 and 0.9

@@ -58,13 +58,13 @@ def __init__(self, sasl_client_factory, mechanism, trans):
self.encode = None

def isOpen(self):
return self._trans.isOpen()
return self._trans.is_open()

def is_open(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there callers that rely on both isOpen() and is_open() being available? Why keep both? Could you just have:

  def is_open(self):
      return self._trans.is_open()

Copy link

@andredasilvapinto andredasilvapinto Feb 13, 2018

Choose a reason for hiding this comment

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

@mkurovski
Copy link

Is there some progress on this issue or can you merge it?

@mariusvniekerk
Copy link
Contributor

@wesm ping

@wesm wesm merged commit 892ead1 into cloudera:master Feb 7, 2018
@wesm
Copy link
Contributor

wesm commented Feb 7, 2018

@gregrahn can someone test this out and make a release of the package?

@gregrahn
Copy link

gregrahn commented Feb 7, 2018

@wesm 👍

@danielfrg
Copy link

+1 for a release soon if possible since latest versions pyhive and impyla have incompatible versions of thrift_sasl at the moment

@gregrahn
Copy link

gregrahn commented Mar 16, 2018

@dknupp given you updated impyla to 0.14.1 on 2018-02-23, is this still an open issue?

ccphillippi pushed a commit to ccphillippi/thrift_sasl that referenced this pull request Mar 22, 2018
@danielfrg
Copy link

impyla 0.14.1 pins thrift_sasl to 0.2.1 so it works but its still not possible to update thrift_sasl for other libraries that need it (PyHive with kerberos support and maybe others) so i think this is still an issue until a new release is made.

andreypolyak added a commit to andreypolyak/thrift_sasl that referenced this pull request May 5, 2018
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.

8 participants