Files
0pt/evidence/bi-p029/semantic-parity.json
T

63 lines
1.5 KiB
JSON

{
"prompt": "BI-P029",
"title": "Golden metric parity: 0pt metric compiler vs an independent spec-driven renderer",
"recorded_at": "2026-09-07T06:23:27.839Z",
"clickhouse_version": "26.3.10.60",
"golden_metric": {
"id": "m_revenue",
"name": "net_revenue",
"definition_filters": [
{
"dimension": "channel",
"operator": "ne",
"values": [
"internal"
]
}
],
"semantic_model": {
"model_id": "sm_sales",
"version": 1,
"hash": "c5b9cac1b5fdcfbfb89a1e960b946a9b33b8c29dc14fe9a304c134f7a0fb73a7"
}
},
"expected_from_typescript": {
"SE": 1250,
"NO": 400,
"DK": 125.5
},
"regression_guarded": {
"description": "the same request compiled WITHOUT the metric definition filters — what 0pt returned before this change",
"result": {
"DK": 3458.5,
"NO": 8177,
"SE": 11249
}
},
"path_a": {
"compiler": "0pt compileRequestToClickHouse",
"aggregate": "sumIf",
"result": {
"DK": 125.5,
"NO": 400,
"SE": 1250
}
},
"path_b": {
"compiler": "MetricFlowProvider.compile + independent renderer",
"aggregate": "sum(if(...))",
"result": {
"DK": 125.5,
"NO": 400,
"SE": 1250
}
},
"tolerance": "1e-9 relative",
"verdict": "PASS",
"still_open": [
"MetricFlow itself was not executed (no Python runtime provisioned for this repo)",
"the Superset integration path is not implemented",
"the AI Analyst path (inf0#29) has not been compared against this provider"
]
}