4 releases (2 breaking)

0.3.0 Jul 30, 2022
0.2.0 Jul 28, 2022
0.1.1 Jul 20, 2022
0.1.0 Jul 19, 2022

#2756 in Algorithms

Download history 71/week @ 2024-12-21 229/week @ 2024-12-28 563/week @ 2025-01-04 504/week @ 2025-01-11 209/week @ 2025-01-18 250/week @ 2025-01-25 346/week @ 2025-02-01 346/week @ 2025-02-08 393/week @ 2025-02-15 773/week @ 2025-02-22 612/week @ 2025-03-01 455/week @ 2025-03-08 543/week @ 2025-03-15 482/week @ 2025-03-22 605/week @ 2025-03-29 466/week @ 2025-04-05

2,191 downloads per month
Used in 2 crates

MIT/Apache

62KB
1.5K SLoC

Read Apache ORC from Rust

test codecov

Read Apache ORC in Rust.

This repository is similar to parquet2 and Avro-schema, providing a toolkit to:

  • Read ORC files (proto structures)
  • Read stripes (the conversion from proto metadata to memory regions)
  • Decode stripes (the math of decode stripes into e.g. booleans, runs of RLE, etc.)

It currently reads the following (logical) types:

  • booleans
  • strings
  • integers
  • floats

What is not yet implemented:

  • Snappy, LZO decompression
  • RLE v2 Patched Base decoding
  • RLE v1 decoding
  • Utility functions to decode non-native logical types:
    • decimal
    • timestamp
    • struct
    • List
    • Union

Run tests

python3 -m venv venv
venv/bin/pip install -U pip
venv/bin/pip install -U pyorc
venv/bin/python write.py
cargo test

Dependencies

~3MB
~60K SLoC