-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Properly use Python3's buffer interface. #1836
Conversation
@sceeter89, thanks for your PR! By analyzing the annotation information on this pull request, we identified @gpoulin, @jeremykarn and @toidi to be potential reviewers |
Can you add a test case? |
I'll give it a shot afternoon. |
@Tarrasch Instead of adding new test case I changed fake Popen stuff to let PigTask read input (by returning None from poll at least once). It was enough to make all tests fail. And applying fix fixed that. |
LGTM. But someone knowing pig should review. |
Actually this issue has nothing to do with Pig itself, but if you know such a person it would be great to let her/him know. |
Okay. If nobody comments for a while I suppose this can be merged. 👍 |
LGTM, I would just change line 130 to |
@gpoulin Good point, thank you for that, I've just pushed this change. |
lgtm |
Description
When using
luigi
with Python 3 there is issue running PigTask. Because output intrack_and_progress
is both read to unicode string and copied to temporary file, it failed as conversion to string happens before writing to file. I simply moved decoding after writing to temporary file.Motivation and Context
Without this change, running PigTask ended with following error:
And while Pig script finished successfully,
luigi
marked it as failed.Have you tested this? If so, how?
After making this change locally our Pig scripts run without issues using Python3.4