Go to file
Qi Zhu 390de282d8
Add benchmark for parquet reader with row_filter and project settings (#7401)
* Add benchmark for parquet reader with row_filter and project settings

* fix clippy

* change bench mark to use asyn read to trigger the page cache

* fix

* fix

* Update comments, add background

* incremently addressing the comments

* Fix bool random

* fixup

* Add fn switch and project enum

* Fix clippy

* Address comment

* Add float(half set) and int(full set) change

* Address comments

* Set compression

* fix

* Update comments

* refactor filter column indexes

* Read from in memory buffer

* celanu

* Test both sync and async readers

---------

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2025-04-15 13:01:54 -04:00
.github Remove `object_store` from arrow-rs repository (#7316) 2025-03-24 12:26:35 -04:00
arrow Apply clippy suggestions newly introduced in rust 1.86 (#7382) 2025-04-03 08:23:29 -07:00
arrow-arith Fix: `date_part` to extract only the requested part (not the overall interval) (#7189) 2025-03-25 14:07:08 -04:00
arrow-array Replace with_schema_unchecked with new_unchecked (#7405) 2025-04-13 12:31:00 +01:00
arrow-avro Update rand requirement from 0.8 to 0.9 (try 2) (#7126) 2025-03-25 14:06:42 -04:00
arrow-buffer Implement `Default` for `Buffer` & `ScalarBuffer` (#7413) 2025-04-15 09:06:40 +08:00
arrow-cast Add documentation and examples for pretty printing, make `pretty_format_columns_with_options` pub (#7346) 2025-03-31 10:28:20 -04:00
arrow-csv Print row, data present, expected type, and row number in error messages for arrow-csv (#7361) 2025-04-04 15:11:58 -04:00
arrow-data Improve documentation on `ArrayData::offset` (#7385) 2025-04-06 07:38:41 -04:00
arrow-flight Bump MSRV to 1.81 (#7336) 2025-03-27 12:35:01 -04:00
arrow-integration-test Use `doc_auto_cfg`, logo and favicon for docs.rs (#7145) 2025-03-08 09:25:56 +00:00
arrow-integration-testing Bump MSRV to 1.81 (#7336) 2025-03-27 12:35:01 -04:00
arrow-ipc fix: respect offset/length when converting ArrayData to StructArray (#7366) 2025-04-04 04:33:45 -07:00
arrow-json Bump MSRV to 1.81 (#7336) 2025-03-27 12:35:01 -04:00
arrow-ord Update rand requirement from 0.8 to 0.9 (try 2) (#7126) 2025-03-25 14:06:42 -04:00
arrow-pyarrow-integration-testing bump pyo3 for RUSTSEC-2025-0020 (#7368) 2025-04-01 16:30:46 +02:00
arrow-row Update rand requirement from 0.8 to 0.9 (try 2) (#7126) 2025-03-25 14:06:42 -04:00
arrow-schema Bump MSRV to 1.81 (#7336) 2025-03-27 12:35:01 -04:00
arrow-select Improve `concat` performance, and add `append_array` for some array builder implementations (#7309) 2025-04-06 07:38:25 -04:00
arrow-string MINOR: fix incorrect method name in deprecate node (#7306) 2025-03-18 21:50:19 +00:00
dev Prepare version `55.0.0` (#7391) 2025-04-08 11:20:05 -04:00
format Upgrade protobuf definitions to flightsql 17.0 (#6133) (#6169) 2024-08-01 07:05:10 -04:00
parquet Add benchmark for parquet reader with row_filter and project settings (#7401) 2025-04-15 13:01:54 -04:00
parquet-testing@6e851ddd76 Test int96 Parquet file from Spark (#7367) 2025-04-04 07:29:33 -04:00
parquet_derive Use `doc_auto_cfg`, logo and favicon for docs.rs (#7145) 2025-03-08 09:25:56 +00:00
parquet_derive_test Use `doc_auto_cfg`, logo and favicon for docs.rs (#7145) 2025-03-08 09:25:56 +00:00
testing@735ae7128d Remove duplicated statistics tests in parquet (#6190) 2024-08-07 08:14:02 -04:00
.asf.yaml Remove `object-store` label from `.asf.yaml` (#7339) 2025-03-27 17:30:27 +01:00
.gitattributes Cleanup generated proto code (#2921) 2022-10-26 11:07:29 +13:00
.github_changelog_generator Exclude questions from changelog (#5349) 2024-01-30 16:12:19 +00:00
.gitignore feat(object_store): Azure url signing (#5259) 2024-01-04 16:40:51 +00:00
.gitmodules Add parquet-testing submodule 2021-04-18 09:26:33 -06:00
.pre-commit-config.yaml Fixed CI. 2021-04-18 17:06:07 +00:00
CHANGELOG-old.md Prepare version `55.0.0` (#7391) 2025-04-08 11:20:05 -04:00
CHANGELOG.md Prepare version `55.0.0` (#7391) 2025-04-08 11:20:05 -04:00
CODE_OF_CONDUCT.md use prettiery to auto format md files (#398) 2021-06-05 07:01:58 +02:00
CONTRIBUTING.md Update the relative path of the test data (#7221) 2025-03-06 13:36:49 -05:00
Cargo.toml Prepare version `55.0.0` (#7391) 2025-04-08 11:20:05 -04:00
LICENSE.txt Minor: Remove non standard footer from LICENSE.txt (#6237) 2024-08-13 08:58:10 -04:00
NOTICE.txt ARROW-5934: [Python] Bundle arrow's LICENSE with the wheels 2019-07-15 13:48:22 -05:00
README.md Prepare version `55.0.0` (#7391) 2025-04-08 11:20:05 -04:00
header ARROW-259: Use Flatbuffer Field type instead of MaterializedField 2016-08-18 16:29:27 -07:00
pre-commit.sh Fix pre commit (#4990) 2023-10-25 13:14:55 +01:00
rustfmt.toml Use rustfmt default line width (#4960) 2023-10-19 17:19:40 +01:00

README.md

Native Rust implementation of Apache Arrow and Apache Parquet

Welcome to the Rust implementation of Apache Arrow, the popular in-memory columnar format.

This repository contains the following crates:

Crate Description Latest API Docs README
arrow Core functionality (memory layout, arrays, low level computations) docs.rs (README)
arrow-flight Support for Arrow-Flight IPC protocol docs.rs (README)
parquet Support for Parquet columnar file format docs.rs (README)
parquet_derive A crate for deriving RecordWriter/RecordReader for arbitrary, simple structs docs.rs (README)

The current development version the API documentation in this repo can be found here.

Note: previously the object_store crate was also part of this repository, but it has been moved to the arrow-rs-object-store repository

Release Versioning and Schedule

The Arrow Rust project releases approximately monthly and follows Semantic Versioning.

Due to available maintainer and testing bandwidth, arrow crates (arrow, arrow-flight, etc.) are released on the same schedule with the same versions as the parquet and [parquet-derive] crates.

This crate releases every month. We release new major versions (with potentially breaking API changes) at most once a quarter, and release incremental minor versions in the intervening months. See ticket #5368 for more details.

To keep our maintenance burden down, we do regularly scheduled releases (major and minor) from the main branch. How we handle PRs with breaking API changes is described in the contributing guide.

Planned Release Schedule

Approximate Date Version Notes
Apr 2025 55.0.0 Major, potentially breaking API changes
May 2025 55.1.0 Minor, NO breaking API changes
June 2025 55.2.0 Minor, NO breaking API changes
July 2025 56.0.0 Major, potentially breaking API changes

Rust Version Compatibility Policy

arrow-rs, parquet and object_store are built and tested with stable Rust, and will keep a rolling MSRV (minimum supported Rust version) that can only be updated in major releases on a need by basis (e.g. project dependencies bump their MSRV or a particular Rust feature is useful for us etc.). The new MSRV if selected will be at least 6 months old. The minor releases are guaranteed to have the same MSRV.

Note: If a Rust hotfix is released for the current MSRV, the MSRV will be updated to the specific minor version that includes all applicable hotfixes preceding other policies.

E.g.

in Apr 2025 we will release version 55.0.0 which might have a version bump. But the Rust version selected in this case will be at most version 1.81.

Guidelines for panic vs Result

In general, use panics for bad states that are unreachable, unrecoverable or harmful. For those caused by invalid user input, however, we prefer to report that invalidity gracefully as an error result instead of panicking. In general, invalid input should result in an Error as soon as possible. It is ok for code paths after validation to assume validation has already occurred and panic if not. See ticket #6737 for more nuances.

Deprecation Guidelines

Minor releases may deprecate, but not remove APIs. Deprecating APIs allows downstream Rust programs to still compile, but generate compiler warnings. This gives downstream crates time to migrate prior to API removal.

To deprecate an API:

  • Mark the API as deprecated using #[deprecated] and specify the exact arrow-rs version in which it was deprecated
  • Concisely describe the preferred API to help the user transition

The deprecated version is the next version which will be released (please consult the list above). To mark the API as deprecated, use the #[deprecated(since = "...", note = "...")] attribute.

Foe example

#[deprecated(since = "51.0.0", note = "Use `date_part` instead")]

In general, deprecated APIs will remain in the codebase for at least two major releases after they were deprecated (typically between 6 - 9 months later). For example, an API deprecated in 51.3.0 can be removed in 54.0.0 (or later). Deprecated APIs may be removed earlier or later than these guidelines at the discretion of the maintainers.

There are several related crates in different repositories

Crate Description Documentation
object_store Object Storage (aws, azure, gcp, local, in-memory) interface (README)
datafusion In-memory query engine with SQL support (README)
ballista Distributed query execution (README)
parquet_opendal Use [opendal] for parquet Arrow IO (README)

Collectively, these crates support a wider array of functionality for analytic computations in Rust.

For example, you can write SQL queries or a DataFrame (using the datafusion crate) to read a parquet file (using the parquet crate), evaluate it in-memory using Arrow's columnar format (using the arrow crate), and send to another process (using the arrow-flight crate).

Generally speaking, the arrow crate offers functionality for using Arrow arrays, and datafusion offers most operations typically found in SQL, including joins and window functions.

You can find more details about each crate in their respective READMEs.

Arrow Rust Community

The dev@arrow.apache.org mailing list serves as the core communication channel for the Arrow community. Instructions for signing up and links to the archives can be found on the Arrow Community page. All major announcements and communications happen there.

The Rust Arrow community also uses the official ASF Slack for informal discussions and coordination. This is a great place to meet other contributors and get guidance on where to contribute. Join us in the #arrow-rust channel and feel free to ask for an invite via:

  1. the dev@arrow.apache.org mailing list
  2. the GitHub Discussions
  3. the Discord channel

The Rust implementation uses GitHub issues as the system of record for new features and bug fixes and this plays a critical role in the release process.

For design discussions we generally use GitHub issues.

There is more information in the contributing guide.