File tree 2 files changed +4
-3
lines changed
physical-expr/src/aggregate
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 20
20
//! `hyperloglog` is a module that contains a modified version
21
21
//! of [redis's implementation](https://github.com/redis/redis/blob/4930d19e70c391750479951022e207e19111eb55/src/hyperloglog.c)
22
22
//! with some modification based on strong assumption of usage
23
- //! within datafusion, so that [`datafusion_functions_aggregate:: approx_distinct`] function can
23
+ //! within datafusion, so that [`approx_distinct`] function can
24
24
//! be efficiently implemented.
25
25
//!
26
26
//! Specifically, like Redis's version, this HLL structure uses
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ where
115
115
116
116
/// Get the register histogram (each value in register index into
117
117
/// the histogram; u32 is enough because we only have 2**14=16384 registers
118
- #[ warn ( dead_code) ]
118
+ #[ allow ( dead_code) ]
119
119
#[ inline]
120
120
fn get_histogram ( & self ) -> [ u32 ; HLL_Q + 2 ] {
121
121
let mut histogram = [ 0 ; HLL_Q + 2 ] ;
@@ -127,7 +127,7 @@ where
127
127
}
128
128
129
129
/// Merge the other [`HyperLogLog`] into this one
130
- #[ warn ( dead_code) ]
130
+ #[ allow ( dead_code) ]
131
131
pub fn merge ( & mut self , other : & HyperLogLog < T > ) {
132
132
assert ! (
133
133
self . registers. len( ) == other. registers. len( ) ,
@@ -181,6 +181,7 @@ fn hll_sigma(x: f64) -> f64 {
181
181
/// Helper function tau as defined in
182
182
/// "New cardinality estimation algorithms for HyperLogLog sketches"
183
183
/// Otmar Ertl, arXiv:1702.01284
184
+ #[ allow( dead_code) ]
184
185
#[ inline]
185
186
fn hll_tau ( x : f64 ) -> f64 {
186
187
if x == 0.0 || x == 1.0 {
You can’t perform that action at this time.
0 commit comments