Compiled rule types#
These public structs are in parcel_core::compile and are returned within Compilation. They have no public constructors or methods of their own.
CelRule#
Field |
Type |
Meaning |
|---|---|---|
|
|
Rule ID. |
|
|
Expression evaluated by the CEL interpreter. |
GuaranteeRule#
Field |
Type |
Meaning |
|---|---|---|
|
|
Rule ID. |
|
|
Dataset requirement expression. |
|
|
Action when false: |
|
|
Statistics-column names read by the expression. |
ShapeRule#
Field |
Type |
Meaning |
|---|---|---|
|
|
Rule ID. |
|
|
Typed shape operation. |
|
|
Optional caller condition that skips this shape. |
Flag#
Field |
Type |
Meaning |
|---|---|---|
|
|
Assertion ID. |
|
|
Stored flag column name. |
|
|
DataFusion assertion expression. |
|
|
Action when false: |
RowRule#
Field |
Type |
Meaning |
|---|---|---|
|
|
Rule ID. |
|
|
|
|
|
Reference CEL expression. |
|
|
Columns read by value; nulls affect rule evaluation. |
|
|
Expression return type. |
Derived#
Field |
Type |
Meaning |
|---|---|---|
|
|
Stored calculation column name. |
|
|
Canonical CEL calculation. |
|
|
DataFusion calculation. |
|
|
Result type. |
EnrichSpec#
Field |
Type |
Meaning |
|---|---|---|
|
|
Custom row field name. |
|
|
CEL expression over raw columns. |
|
|
Raw columns read. |
|
|
DataFusion calculation. |
|
|
Result type. |
StatSpec#
Field |
Type |
Meaning |
|---|---|---|
|
|
Typed dataset-field identifier. |
|
|
Output name in the verdict row. |
|
|
CEL field path, such as |
|
|
Statistic type. |
ShapeOp and NoiseAt#
ShapeOp is defined in parcel_core::check:
pub enum ShapeOp {
Noise { column: String, sensitivity: f64, epsilon: f64, budget: String, at: NoiseAt },
Suppress { k: u64 },
Sample { fraction: f64, key: String },
}
pub enum NoiseAt { Aggregate, Row }
column identifies the noised output, sensitivity and epsilon control noise, and budget identifies the charged budget. k is the minimum group size. fraction is the sampling proportion and key determines the stable sample.