Support spilling

This commit is contained in:
Andras Schmelczer 2026-06-20 11:03:04 +01:00
parent 3dd5cde626
commit 8d0ecdab19
18 changed files with 150 additions and 65 deletions

View file

@ -482,12 +482,13 @@ pub fn compute_poi_feature_stats(
mod tests {
use super::*;
use crate::consts::NAN_U16;
use crate::data::spill::SpillVec;
fn enum_data(values: &[u16]) -> PropertyData {
let mut data = PropertyData::empty_for_tests();
data.num_features = 1;
data.num_numeric = 0; // single enum feature at index 0
data.feature_data = values.to_vec();
data.feature_data = SpillVec::owned(values.to_vec());
data.enum_values
.insert(0, vec!["Yes".to_string(), "No".to_string()]);
data