From ccb757dff27872c4d36c204b758fefe37b66d4d1 Mon Sep 17 00:00:00 2001 From: alosslessdev Date: Thu, 5 Nov 2026 15:32:30 -0500 Subject: [PATCH] dax: align the storage and functions-reference docs with the typed aggregates (#2228) --- crates/dax/src/storage.rs | 8 +++++--- docs/dax-functions.md | 5 ++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/crates/dax/src/storage.rs b/crates/dax/src/storage.rs index cce671a0a..aef59e9ef 100644 --- a/crates/dax/src/storage.rs +++ b/crates/dax/src/storage.rs @@ -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 diff --git a/docs/dax-functions.md b/docs/dax-functions.md index 656c475ea..9977da1cf 100644 --- a/docs/dax-functions.md +++ b/docs/dax-functions.md @@ -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