vortex-go
A pure Go reader and writer for the Vortex columnar file format.
Status: design only. Nothing is implemented yet.
Goals
Ranked. The details and the "done when" lists are in docs/goals.md.
- Easy to use. A file to Go structs, or Go structs to a file, in a few lines and no configuration.
- Correct. The Rust implementation is the judge, for what we read and for what we write.
- Complete. Every encoding, layout and type of the upstream
core edition.
- Fast, without allocation. A running scan or writer allocates nothing.
- Self-contained. No cgo. The standard library, plus
klauspost/compress for zstd.
- 100% statement coverage. No exclusion.
What it will look like
f, err := vortex.OpenFile("trades.vortex")
if err != nil {
return err
}
defer f.Close()
type Trade struct {
ID int64 `vortex:"id"`
Price float64 `vortex:"price"`
}
q := vortex.Query{Filter: vortex.Col("price").Gt(100)}
for t, err := range vortex.Rows[Trade](ctx, f, q) {
if err != nil {
return err
}
use(t)
}
The full interface is in docs/interface.md.
How it is tested
docs/testing.md says how each goal is checked: the corpus of files
written by the reference implementation, the oracle that gives the expected values, the
check of our writer by the reference reader, the allocation tests and the gates.
make check
Following upstream
.vortex-version pins the upstream release we follow. Renovate opens a PR on each new
release. See docs/upstream-update.md.
License
MIT, see LICENSE.