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: fix conversion by avro #519

Merged
merged 2 commits into from
Dec 29, 2022
Merged

Conversation

Rachelint
Copy link
Contributor

@Rachelint Rachelint commented Dec 29, 2022

Which issue does this PR close?

Closes #
Part of #492

Rationale for this change

We convert all int related types to int32 and int64, because only these two int types in avro now.
So when converting Value(avro datum) to Datum, we should convert it back to the right type in schema.

What changes are included in this PR?

Modify avro_value_to_datum in avro.rs for converting back to the right type.

Are there any user-facing changes?

None.

How does this change test

Test by ut.

@Rachelint Rachelint force-pushed the fix-convertion-by-avro branch 2 times, most recently from 6da2d76 to 0643817 Compare December 29, 2022 08:24
Copy link
Contributor

@chunshao90 chunshao90 left a comment

Choose a reason for hiding this comment

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

LGTM

@chunshao90 chunshao90 merged commit 1660efe into apache:main Dec 29, 2022
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
@Rachelint Rachelint deleted the fix-convertion-by-avro branch May 27, 2023 12:18
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.

2 participants