Skip to content

Commit

Permalink
Format markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed May 25, 2021
1 parent dba96aa commit 07eef2d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arrow-flight/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,3 @@ Apache Arrow Flight is a gRPC based protocol for exchanging Arrow data between p
This crate simply provides the Rust implementation of the [Flight.proto](../../format/Flight.proto) gRPC protocol and provides an example that demonstrates how to build a Flight server implemented with Tonic.

Note that building a Flight server also requires an implementation of Arrow IPC which is based on the Flatbuffers serialization framework. The Rust implementation of Arrow IPC is not yet complete although the generated Flatbuffers code is available as part of the core Arrow crate.



14 changes: 14 additions & 0 deletions parquet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,22 @@
[![Crates.io](https://img.shields.io/crates/v/parquet.svg)](https://crates.io/crates/parquet)

## Usage

Add this to your Cargo.toml:

```toml
[dependencies]
parquet = "5.0.0-SNAPSHOT"
```

and this to your crate root:

```rust
extern crate parquet;
```

Example usage of reading data:

```rust
use std::fs::File;
use std::path::Path;
Expand All @@ -46,6 +50,7 @@ while let Some(record) = iter.next() {
println!("{}", record);
}
```

See [crate documentation](https://docs.rs/crate/parquet/5.0.0-SNAPSHOT) on available API.

## Upgrading from versions prior to 4.0
Expand All @@ -63,12 +68,14 @@ It is preferred that `LogicalType` is used, as it supports nanosecond
precision timestamps without using the deprecated `Int96` Parquet type.

## Supported Parquet Version

- Parquet-format 2.6.0

To update Parquet format to a newer version, check if [parquet-format](https://github.com/sunchao/parquet-format-rs)
version is available. Then simply update version of `parquet-format` crate in Cargo.toml.

## Features

- [X] All encodings supported
- [X] All compression codecs supported
- [X] Read support
Expand All @@ -89,15 +96,18 @@ Parquet requires LLVM. Our windows CI image includes LLVM but to build the libr
users will have to install LLVM. Follow [this](https://github.com/appveyor/ci/issues/2651) link for info.

## Build

Run `cargo build` or `cargo build --release` to build in release mode.
Some features take advantage of SSE4.2 instructions, which can be
enabled by adding `RUSTFLAGS="-C target-feature=+sse4.2"` before the
`cargo build` command.

## Test

Run `cargo test` for unit tests. To also run tests related to the binaries, use `cargo test --features cli`.

## Binaries

The following binaries are provided (use `cargo install --features cli` to install them):
- **parquet-schema** for printing Parquet file schema and metadata.
`Usage: parquet-schema <file-path>`, where `file-path` is the path to a Parquet file. Use `-v/--verbose` flag
Expand All @@ -113,16 +123,20 @@ be printed). Use `-j/--json` to print records in JSON lines format.
files to read.

If you see `Library not loaded` error, please make sure `LD_LIBRARY_PATH` is set properly:

```
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(rustc --print sysroot)/lib
```

## Benchmarks

Run `cargo bench` for benchmarks.

## Docs

To build documentation, run `cargo doc --no-deps`.
To compile and view in the browser, run `cargo doc --no-deps --open`.

## License

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0.

0 comments on commit 07eef2d

Please sign in to comment.