Skip to content

Make IdentitySerde handle bytes as well#2848

Merged
srkukarni merged 2 commits intoapache:masterfrom
srkukarni:identity_handle_bytes
Oct 26, 2018
Merged

Make IdentitySerde handle bytes as well#2848
srkukarni merged 2 commits intoapache:masterfrom
srkukarni:identity_handle_bytes

Conversation

@srkukarni
Copy link
Copy Markdown
Contributor

Motivation

This will allow bytes to go thru the system unchanged

Modifications

Describe the modifications you've done.

Result

After your change, what will change.

return str(input).encode('utf-8')
if type(input) == bytes:
return input
raise TypeError
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should also add context on the type that we got passed here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added

Copy link
Copy Markdown
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

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

👍

@srkukarni
Copy link
Copy Markdown
Contributor Author

rerun integration tests

@srkukarni
Copy link
Copy Markdown
Contributor Author

rerun java8 tests

@srkukarni srkukarni merged commit b867907 into apache:master Oct 26, 2018
@srkukarni srkukarni deleted the identity_handle_bytes branch October 26, 2018 09:56
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