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

Remove one copy of ballista datatype serialization code #1524

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jan 5, 2022

Which issue does this PR close?

NA

Rationale for this change

While working on #1523 I noticed that there were two copies of the protobuf --> DataType logic.

Not only does this duplicate effort, it also potentially allows for divergent implementations

What changes are included in this PR?

Remove one copy of the conversion logic and call the other

Are there any user-facing changes?

No

@alamb alamb changed the title Remove one copy of datatype serialization code Remove one copy of ballista datatype serialization code Jan 5, 2022
)
}
})
pb_arrow_type.try_into()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The other copy of this logic is here: https://github.com/apache/arrow-datafusion/blob/master/ballista/rust/core/src/serde/mod.rs#L161-L267 in case you are interested

@alamb alamb merged commit ecb09d9 into apache:master Jan 6, 2022
@alamb alamb deleted the alamb/remove_copy_paste branch January 6, 2022 12:04
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.

None yet

2 participants