Skip to content

Commit a9ba7b6

Browse files
Added implementation
1 parent a394cfa commit a9ba7b6

12 files changed

Lines changed: 1194 additions & 60 deletions

File tree

‎asap-common/dependencies/rs/sketch_db_common/src/aggregation_config.rs‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ pub struct AggregationConfig {
3434
pub value_column: Option<String>, // SQL mode: which value column to aggregate
3535
}
3636

37+
/// Aggregation IDs and types for both the key and value dimensions of a query.
38+
/// For single-population queries, key and value share the same ID and type.
39+
/// For multi-population queries (e.g. Topk), they differ.
40+
#[derive(Debug, Clone)]
41+
pub struct AggregationIdInfo {
42+
pub aggregation_id_for_key: u64,
43+
pub aggregation_id_for_value: u64,
44+
pub aggregation_type_for_key: String,
45+
pub aggregation_type_for_value: String,
46+
}
47+
3748
// TODO: need to implement deserialization methods
3849

3950
impl AggregationConfig {

0 commit comments

Comments
 (0)