Skip to main content

Crate rudb_functions

Crate rudb_functions 

Source
Expand description

The scalar, aggregate and window function library.

Rank 7 in the layer rule. See xtask/layers.toml and spec/18-package-layout.md.

Most of what is here is the signature half: given a name and the types of the arguments, which function is that and what does it return. The implementations are separate work and they go behind the same names, so the binder does not change when they arrive.

file is the exception and it reads a file. A table function that scans a Parquet file cannot be resolved from a table of names, because its columns are in the file, so resolving one means opening it. That is the only I/O in this crate and it is the reason rudb-io and rudb-parquet are dependencies of it.

Re-exports§

pub use file::csv_fields;
pub use file::csv_given;
pub use file::files;
pub use file::is_file;
pub use file::is_pattern;
pub use file::open_csv;
pub use file::open_parquet;
pub use file::parquet_fields;
pub use signature::FunctionKind;
pub use signature::Resolved;
pub use signature::kind_of;
pub use signature::resolve;
pub use table::Columns;
pub use table::ResolvedTable;
pub use table::TableFunction;
pub use table::resolve_table;
pub use table::series;
pub use table::series_length;

Modules§

file
The table functions that read a file, which today are read_parquet and read_csv.
signature
What a function call resolves to.
table
What a table function call resolves to.

Structs§

Given
What the caller said about how the file is written, where the sniffer would otherwise decide.