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 serialization of short[] arays. #8025

Closed
wants to merge 1 commit into from

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Oct 8, 2014

short[] were mistakenly encoded as a float[]. This is not an issue for the
text-based xcontents that we have (yaml, json) since floats can represent any
short value and are serialized as strings. However, this will make the binary
xcontents serialize shorts as int instead of floats.

Close #7845

short[] were mistakenly encoded as a float[]. This is not an issue for the
text-based xcontents that we have (yaml, json) since floats can represent any
short value and are serialized as strings. However, this will make the binary
xcontents serialize shorts as int instead of floats.

Close elastic#7845
@bleskes
Copy link
Contributor

bleskes commented Oct 8, 2014

LGTM

@jpountz jpountz removed the review label Oct 8, 2014
@jpountz jpountz closed this Oct 9, 2014
@jpountz jpountz deleted the fix/xcontent_short_array branch October 9, 2014 12:31
@clintongormley clintongormley added :Core/Infra/Core Core issues without another label :Internal and removed :Core/Infra/Core Core issues without another label labels Mar 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

java api - multiple dimension arrays of shorts are casted to multiple dimension arrays of floats
3 participants