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

Use Hive Text instead of Java String in GenericHiveRecordCursor #8206

Merged
merged 1 commit into from
Jun 7, 2017

Conversation

dain
Copy link
Contributor

@dain dain commented Jun 7, 2017

No description provided.

@dain dain force-pushed the generic-hive-reader-avoid-string branch 2 times, most recently from 6f90eef to 6580472 Compare June 7, 2017 05:22
@dain dain force-pushed the generic-hive-reader-avoid-string branch from 6580472 to e4dfc8e Compare June 7, 2017 17:29
@dain dain closed this Jun 7, 2017
@dain dain deleted the generic-hive-reader-avoid-string branch June 7, 2017 17:29
@dain dain merged commit e4dfc8e into prestodb:master Jun 7, 2017
pettyjamesm added a commit to pettyjamesm/prestodb that referenced this pull request Sep 15, 2020
Introduced in prestodb#8206, GenericHiveRecordCursor was modified to
avoid extra overhead when the SerDe provided a more efficient String
handling implementation with Writables. However, when the SerDe does
not provide such an implementation and instead already returned String
instances directly, this change introduced an extra conversion from
bytes to String just to be converted back to bytes.

This change alters the behavior of GenericHiveRecordCursor parseString
to respect the PrimitiveObjectInspector's preference for using writables.
mbasmanova pushed a commit that referenced this pull request Sep 17, 2020
Introduced in #8206, GenericHiveRecordCursor was modified to
avoid extra overhead when the SerDe provided a more efficient String
handling implementation with Writables. However, when the SerDe does
not provide such an implementation and instead already returned String
instances directly, this change introduced an extra conversion from
bytes to String just to be converted back to bytes.

This change alters the behavior of GenericHiveRecordCursor parseString
to respect the PrimitiveObjectInspector's preference for using writables.
shangxinli pushed a commit to shangxinli/presto that referenced this pull request Nov 18, 2020
Introduced in prestodb#8206, GenericHiveRecordCursor was modified to
avoid extra overhead when the SerDe provided a more efficient String
handling implementation with Writables. However, when the SerDe does
not provide such an implementation and instead already returned String
instances directly, this change introduced an extra conversion from
bytes to String just to be converted back to bytes.

This change alters the behavior of GenericHiveRecordCursor parseString
to respect the PrimitiveObjectInspector's preference for using writables.
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