Skip to content

Commit cf1c23b

Browse files
committed
Add built-in stats rewrite rules
Signed-off-by: Nicholas Gates <[email protected]>
1 parent a8fb30e commit cf1c23b

4 files changed

Lines changed: 702 additions & 3 deletions

File tree

‎vortex-array/public-api.lock‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21038,7 +21038,7 @@ pub struct vortex_array::stats::session::StatsSession
2103821038

2103921039
impl core::default::Default for vortex_array::stats::StatsSession
2104021040

21041-
pub fn vortex_array::stats::StatsSession::default() -> vortex_array::stats::StatsSession
21041+
pub fn vortex_array::stats::StatsSession::default() -> Self
2104221042

2104321043
impl core::fmt::Debug for vortex_array::stats::StatsSession
2104421044

@@ -21114,7 +21114,7 @@ pub struct vortex_array::stats::StatsSession
2111421114

2111521115
impl core::default::Default for vortex_array::stats::StatsSession
2111621116

21117-
pub fn vortex_array::stats::StatsSession::default() -> vortex_array::stats::StatsSession
21117+
pub fn vortex_array::stats::StatsSession::default() -> Self
2111821118

2111921119
impl core::fmt::Debug for vortex_array::stats::StatsSession
2112021120

‎vortex-array/src/stats/rewrite.rs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ use crate::expr::or_collect;
1616
use crate::scalar_fn::ScalarFnId;
1717
use crate::stats::session::StatsSessionExt;
1818

19+
mod builtins;
20+
21+
pub(crate) use builtins::register_builtins;
22+
1923
/// Shared reference to a stats rewrite rule.
2024
pub(crate) type StatsRewriteRuleRef = Arc<dyn StatsRewriteRule>;
2125

0 commit comments

Comments
 (0)