Expand description
§chronix-query
Query engine for the Chronix time-series database.
This crate implements the full query pipeline:
- Planning —
QueryPlanandQueryBuilderfor fluent query construction - Pruning — Multi-level segment elimination (time, bloom, stats)
- Projection — Read only the columns needed by the query
- Filtering — Vectorized predicate evaluation on Arrow arrays
- Deduplication — Sort-merge dedup for overlapping segments
- Aggregation — count, sum, min, max, avg, first, last
- Downsampling — Time-bucket aggregation
- Window functions — row_number, rank, lead, lag, delta, rate, irate, moving average, cumulative sum, increase
All results are returned as Apache Arrow RecordBatch for zero-copy
interoperability with data processing ecosystems.
Re-exports§
pub use aggregate::AggFn;pub use aggregate::AggResult;pub use aggregate::DecimalTrack;pub use aggregate::Num;pub use convert::points_to_record_batch;pub use encoded_pushdown::ColumnPredicate;pub use encoded_pushdown::EncodedDomainEvaluator;pub use encoded_pushdown::RowGroupVerdict;pub use error::QueryError;pub use memory::MemoryTracker;pub use plan::QueryBuilder;pub use plan::QueryPlan;pub use window::WindowFn;
Modules§
- aggregate
- Aggregation functions for query results.
- convert
- Conversion from
Pointcollections to ArrowRecordBatch. - dedup
- K-way merge deduplication for overlapping segments.
- downsample
- Time-bucket downsampling engine.
- encoded_
pushdown - Encoded-domain predicate pushdown — evaluates predicates against column statistics without decoding the actual data.
- error
- Query engine error types.
- filter
- Vectorized predicate filtering on Arrow arrays.
- memory
- Per-query memory tracking and budget enforcement.
- plan
- Query planning and fluent builder API.
- pruning
- Multi-level segment pruning pipeline.
- window
- Window functions for time-series query processing.
Structs§
- Field
Predicate - A field predicate that can be evaluated against per-row-group
ColumnStatsmin/max to skip row groups that cannot possibly match.
Enums§
- StatsOp
- A numeric comparison operator for zone-map row-group pruning.
Functions§
- arrow_
cell_ to_ field_ value - The inverse of
column_type_to_arrow, for one cell. - column_
type_ to_ arrow - The Arrow type a schema column decodes to — one answer, in one place.
- extract_
f64 - Consolidated Arrow column →
f64extraction.