mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-01 18:26:05 -06:00
dax: align the storage and functions-reference docs with the typed aggregates (#2228)
This commit is contained in:
@@ -59,9 +59,11 @@
|
||||
//! [`TableStorage::numeric_values`] and [`TableStorage::distinct_values`] for the aggregate fast
|
||||
//! paths, `VALUES`/`DISTINCT` and the statistical aggregates. The typed exact aggregates
|
||||
//! ([`TableStorage::sum`], [`TableStorage::min`], [`TableStorage::max`],
|
||||
//! [`TableStorage::aggregate`]) stay the API for typed consumers; the evaluator derives the six
|
||||
//! numeric DAX aggregates from [`TableStorage::numeric_values`] because DAX's `SUM`/`MIN`/`MAX`
|
||||
//! are defined over `f64` observations in this evaluator, not over an exact integer total.
|
||||
//! [`TableStorage::aggregate`]) stay the API for typed consumers. The evaluator reads
|
||||
//! `SUM`/`AVERAGE`/`PRODUCT` from [`TableStorage::numeric_values`] (DAX defines them over `f64`
|
||||
//! observations) and `MIN`/`MAX` from [`TableStorage::min`]/[`TableStorage::max`], which return
|
||||
//! the winning value with its own type — an Int64 column answers an Integer, a date column a
|
||||
//! DateTime.
|
||||
//!
|
||||
//! What still scans model rows: `FILTER`, `ADDCOLUMNS`, `TOPN` and every other function that
|
||||
//! evaluates an expression per row, because those need a row context; plus any model that is not
|
||||
|
||||
@@ -107,8 +107,11 @@ adds its dispatch and its own suite under `crates/dax/tests/`. The lists below a
|
||||
|
||||
## Notes
|
||||
|
||||
- `Evaluated` means a dispatch arm exists in one of the family modules under
|
||||
- `Evaluated` means a dispatch path exists: either the built-in switch in
|
||||
`crates/dax/src/eval.rs` (`Evaluator::eval`/`call_table`) or a family module under
|
||||
`crates/dax/src/eval/`; table-valued functions are counted when they have a `call_table` path.
|
||||
In this crate only the built-in switch is linked (`FAMILIES` is empty), which is the subset the
|
||||
scope paragraph above lists.
|
||||
- Engine-only functions (internal filter clusters, `INFO.*` storage views, visual calculations)
|
||||
have no evaluator in this crate: like every other catalogued name outside the scalar core they
|
||||
report `not implemented` until the family that owns them is linked. Where a family is linked it
|
||||
|
||||
Reference in New Issue
Block a user