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

Question regarding unsigned integer support and codec part #158

Open
MSNTCS opened this issue Sep 16, 2020 · 2 comments
Open

Question regarding unsigned integer support and codec part #158

MSNTCS opened this issue Sep 16, 2020 · 2 comments
Labels

Comments

@MSNTCS
Copy link

MSNTCS commented Sep 16, 2020

Greetings!
Thank you for your great repository.

I have a few questions regarding your repository. I would appreciate it if you could answer them.

1- I was trying to use your library and Avro for unsigned integers. Since unsigned integers are Serializable and Deserializable, based on types the library supports, I should be able to use it. but I could not find a way to use unsigned integers or other serde-compatible types in your document. Can you please give me so information in this regard?

2- In my case, I am going to compress and store different values with the same schema over time. Is there any efficient way to compress values for the same schema?

Thank you

@poros poros added the question label Sep 23, 2020
@poros
Copy link
Collaborator

poros commented Sep 23, 2020

Hello!

  1. The library supports all the types in the avro spec and they have been mapped to many of the most common Rust types. If you are trying to serialise a type who hasn't been supported yet, you can either convert it to a type already supported first (https://github.com/flavray/avro-rs/blob/master/src/types.rs#L113) or open a PR to add support for them.

  2. The library supports the Deflate and Snappy codecs for compression. You can see how to use them on the docs https://docs.rs/avro-rs/0.11.0/avro_rs/

@MSNTCS
Copy link
Author

MSNTCS commented Sep 24, 2020

Thank you for your reply, I will try to use your suggestions :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants