-
Notifications
You must be signed in to change notification settings - Fork 223
Avro examples not usable, how to use Avro? #1232
Comments
Hey! Could you compile with The issue here is that atm there is no way in Rust to have no default features and at the same time automatically pass |
Hi I did compile with If I use the code: use arrow2::io::avro::avro_schema::file::Block;
use arrow2::io::avro::avro_schema::read_async::{block_stream, decompress_block, read_metadata};
use arrow2::io::avro::read::{deserialize, infer_schema}; I get error
Also
|
just to check, is this the current release or the latest main? I am being unable to reproduce this in both cases. For example, check https://github.com/DataEngineeringLabs/arrow2-benches/tree/latest, where a Cargo.toml with the latest main and the |
I saw this on arrow2 version 0.13.0 and 0.13.1 (which are latest based on crates.io). The link you mentioned seems to be using arrow2 version=0.6? |
the main is still using 0.6, yes; I meant the branch "latest". |
ohh, I now realize that I forgot to push the change locally. Really sorry about that :( Could you check the branch "latest" now? |
Apologies if I'm misunderstanding but I don't see any branch called "latest" on https://github.com/jorgecarleitao/arrow2/branches ? |
Changing my |
There are similar problems with the parquet examples, which are written for latest main, but doesn't work on 0.13.1 (the latest release as of writing this). This caused me more confusion than I want to admit. What about splitting the examples and the actual development so the examples can be merged as part of creating a release? Or at the very least mention the difference somehow? |
Note that the examples are present in the released artifact for a specific version, https://docs.rs/crate/arrow2/latest/source/examples/ . We also tag every released version, so e.g. https://github.com/jorgecarleitao/arrow2/tree/v0.13.0 provides the examples for the released version. If I'm looking into the examples in the branch @Samrose-Ahmed glad that the issue is addressed. Note that I was not pointing to this repository in the comment above - https://github.com/DataEngineeringLabs/arrow2-benches/tree/latest |
What you are saying makes sense. But when trying this lib out the first place you look at is the guide linked in the readme which seems to be following |
Ahhh, I see. I created #1233 to try to improve the situation. Essentially, after the PR, we will have:
where |
@Samrose-Ahmed, @FireArrow, do you believe #1233 closes this issue? |
Yes, thank you for the update. |
I agree! This solves the problem perfectly!
Thanks!
On 22 Aug 2022 08:35, Samrose ***@***.***> wrote:
Yes, thank you for the update.
—
Reply to this email directly, view it on GitHub<#1232 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AALNR2XQ46ZECB527BKG37LV2MNULANCNFSM566KWTZQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
The Avro examples/documentation seems incorrect. Looks like it references private crates/functions. How would one read/write Avro?
The text was updated successfully, but these errors were encountered: