Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Suggestion: Add examples #77

Closed
andygrove opened this issue Apr 5, 2018 · 3 comments
Closed

Suggestion: Add examples #77

andygrove opened this issue Apr 5, 2018 · 3 comments

Comments

@andygrove
Copy link
Contributor

With a new Rust project I usually go look at the examples first. I think it would be helpful to have some simple examples for reading parquet files. Perhaps one column-oriented and one row-oriented?

@sadikovi
Copy link
Collaborator

sadikovi commented Apr 5, 2018

Thanks @andygrove. You are right, some sort of doc reference would be very helpful.

We are going to publish crate documentation and possibly README update that includes examples of using column reader API and record reader API. I am currently working on it in update-documentation branch, will try finishing it by next week.

@sadikovi
Copy link
Collaborator

sadikovi commented Apr 5, 2018

If you need some reference right away, I suggest you look at https://github.com/sunchao/parquet-rs/blob/master/src/bin/parquet-read.rs for getting records and what types are available (https://github.com/sunchao/parquet-rs/blob/master/src/record/api.rs).

For column reader API, I suggest looking at https://github.com/sunchao/parquet-rs/blob/master/src/column/reader.rs#L44 and triplet functionality that uses column readers (https://github.com/sunchao/parquet-rs/blob/master/src/record/triplet.rs#L205).

I hope that helps you meanwhile.

@sadikovi
Copy link
Collaborator

sadikovi commented Apr 6, 2018

I created an issue for this that I am working on currently #78.

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

No branches or pull requests

2 participants