{
  "schema_version": 1,
  "date": "2026-10-21",
  "feature": "Retracting decimal SUM and exact temporary SUM/AVG partial merging",
  "base_commit": "a86a333e",
  "configuration": {
    "rows": 1000000,
    "types": [
      "FLOAT",
      "DOUBLE",
      "DECIMAL(20,3)"
    ],
    "parallelism": 1,
    "inner_keys": 128,
    "outer_keys": 16,
    "backend": "memory",
    "heap": "2 GiB",
    "mini_batch_rows": 512,
    "mini_batch_latency": "1 h",
    "null_every": 7,
    "warmups": 2,
    "measured_trials": 3,
    "runtime": "JDK 17; release+mimalloc",
    "query_template": "SELECT u, SUM(mx), COUNT(mx), AVG(mx), SUM(mx) FILTER (WHERE mx > 0) FROM (SELECT k, u, MAX(CAST(v AS <type>)) AS mx FROM src GROUP BY k, u) GROUP BY u",
    "boundary": "Runtime RowData source, both transposes, JNI, temporary/persistent state, rowwise blackhole sink and complete job execution; planning/setup excluded. Timing runs alone."
  },
  "measurements": [
    {
      "flink_line": "2.2.1",
      "type": "FLOAT",
      "revision": "candidate",
      "dso_sha256": "18770cf146396c9fbc399db86b86891b2af61df2c59b2a74d780494cec47fe8f",
      "native_aggregate_route": true,
      "trials": [
        {
          "engine": "Flink",
          "trial": 0,
          "warmup": true,
          "seconds": 1.353238472
        },
        {
          "engine": "StreamFusion",
          "trial": 0,
          "warmup": true,
          "seconds": 0.833086381
        },
        {
          "engine": "StreamFusion",
          "trial": 1,
          "warmup": true,
          "seconds": 0.464155536
        },
        {
          "engine": "Flink",
          "trial": 1,
          "warmup": true,
          "seconds": 0.678576382
        },
        {
          "engine": "Flink",
          "trial": 2,
          "warmup": false,
          "seconds": 0.62217741
        },
        {
          "engine": "StreamFusion",
          "trial": 2,
          "warmup": false,
          "seconds": 0.406734022
        },
        {
          "engine": "StreamFusion",
          "trial": 3,
          "warmup": false,
          "seconds": 0.383986933
        },
        {
          "engine": "Flink",
          "trial": 3,
          "warmup": false,
          "seconds": 0.588265583
        },
        {
          "engine": "Flink",
          "trial": 4,
          "warmup": false,
          "seconds": 0.536311788
        },
        {
          "engine": "StreamFusion",
          "trial": 4,
          "warmup": false,
          "seconds": 0.373095216
        }
      ],
      "measured_seconds": {
        "Flink": [
          0.62217741,
          0.588265583,
          0.536311788
        ],
        "StreamFusion": [
          0.406734022,
          0.383986933,
          0.373095216
        ]
      },
      "median_seconds": {
        "Flink": 0.588265583,
        "StreamFusion": 0.383986933
      },
      "stock_over_streamfusion": 1.5319937540687094
    },
    {
      "flink_line": "2.2.1",
      "type": "DOUBLE",
      "revision": "candidate",
      "dso_sha256": "18770cf146396c9fbc399db86b86891b2af61df2c59b2a74d780494cec47fe8f",
      "native_aggregate_route": true,
      "trials": [
        {
          "engine": "Flink",
          "trial": 0,
          "warmup": true,
          "seconds": 0.556552355
        },
        {
          "engine": "StreamFusion",
          "trial": 0,
          "warmup": true,
          "seconds": 0.357861714
        },
        {
          "engine": "StreamFusion",
          "trial": 1,
          "warmup": true,
          "seconds": 0.382131068
        },
        {
          "engine": "Flink",
          "trial": 1,
          "warmup": true,
          "seconds": 0.541085741
        },
        {
          "engine": "Flink",
          "trial": 2,
          "warmup": false,
          "seconds": 0.532833359
        },
        {
          "engine": "StreamFusion",
          "trial": 2,
          "warmup": false,
          "seconds": 0.27965455
        },
        {
          "engine": "StreamFusion",
          "trial": 3,
          "warmup": false,
          "seconds": 0.285878121
        },
        {
          "engine": "Flink",
          "trial": 3,
          "warmup": false,
          "seconds": 0.51030993
        },
        {
          "engine": "Flink",
          "trial": 4,
          "warmup": false,
          "seconds": 0.494416904
        },
        {
          "engine": "StreamFusion",
          "trial": 4,
          "warmup": false,
          "seconds": 0.277885851
        }
      ],
      "measured_seconds": {
        "Flink": [
          0.532833359,
          0.51030993,
          0.494416904
        ],
        "StreamFusion": [
          0.27965455,
          0.285878121,
          0.277885851
        ]
      },
      "median_seconds": {
        "Flink": 0.51030993,
        "StreamFusion": 0.27965455
      },
      "stock_over_streamfusion": 1.8247867949940382
    },
    {
      "flink_line": "2.2.1",
      "type": "DECIMAL(20,3)",
      "revision": "candidate",
      "dso_sha256": "18770cf146396c9fbc399db86b86891b2af61df2c59b2a74d780494cec47fe8f",
      "native_aggregate_route": true,
      "trials": [
        {
          "engine": "Flink",
          "trial": 0,
          "warmup": true,
          "seconds": 1.621940119
        },
        {
          "engine": "StreamFusion",
          "trial": 0,
          "warmup": true,
          "seconds": 0.903135127
        },
        {
          "engine": "StreamFusion",
          "trial": 1,
          "warmup": true,
          "seconds": 0.582162887
        },
        {
          "engine": "Flink",
          "trial": 1,
          "warmup": true,
          "seconds": 0.924471818
        },
        {
          "engine": "Flink",
          "trial": 2,
          "warmup": false,
          "seconds": 0.697060319
        },
        {
          "engine": "StreamFusion",
          "trial": 2,
          "warmup": false,
          "seconds": 0.456043712
        },
        {
          "engine": "StreamFusion",
          "trial": 3,
          "warmup": false,
          "seconds": 0.432221975
        },
        {
          "engine": "Flink",
          "trial": 3,
          "warmup": false,
          "seconds": 0.703586997
        },
        {
          "engine": "Flink",
          "trial": 4,
          "warmup": false,
          "seconds": 0.740903236
        },
        {
          "engine": "StreamFusion",
          "trial": 4,
          "warmup": false,
          "seconds": 0.426197842
        }
      ],
      "measured_seconds": {
        "Flink": [
          0.697060319,
          0.703586997,
          0.740903236
        ],
        "StreamFusion": [
          0.456043712,
          0.432221975,
          0.426197842
        ]
      },
      "median_seconds": {
        "Flink": 0.703586997,
        "StreamFusion": 0.432221975
      },
      "stock_over_streamfusion": 1.627837170935143
    },
    {
      "flink_line": "1.18.1",
      "type": "FLOAT",
      "revision": "candidate",
      "dso_sha256": "18770cf146396c9fbc399db86b86891b2af61df2c59b2a74d780494cec47fe8f",
      "native_aggregate_route": true,
      "trials": [
        {
          "engine": "Flink",
          "trial": 0,
          "warmup": true,
          "seconds": 1.226442772
        },
        {
          "engine": "StreamFusion",
          "trial": 0,
          "warmup": true,
          "seconds": 0.761045689
        },
        {
          "engine": "StreamFusion",
          "trial": 1,
          "warmup": true,
          "seconds": 0.460613972
        },
        {
          "engine": "Flink",
          "trial": 1,
          "warmup": true,
          "seconds": 0.654146702
        },
        {
          "engine": "Flink",
          "trial": 2,
          "warmup": false,
          "seconds": 0.548076566
        },
        {
          "engine": "StreamFusion",
          "trial": 2,
          "warmup": false,
          "seconds": 0.388287792
        },
        {
          "engine": "StreamFusion",
          "trial": 3,
          "warmup": false,
          "seconds": 0.373676476
        },
        {
          "engine": "Flink",
          "trial": 3,
          "warmup": false,
          "seconds": 0.47267323
        },
        {
          "engine": "Flink",
          "trial": 4,
          "warmup": false,
          "seconds": 0.477935648
        },
        {
          "engine": "StreamFusion",
          "trial": 4,
          "warmup": false,
          "seconds": 0.358716836
        }
      ],
      "measured_seconds": {
        "Flink": [
          0.548076566,
          0.47267323,
          0.477935648
        ],
        "StreamFusion": [
          0.388287792,
          0.373676476,
          0.358716836
        ]
      },
      "median_seconds": {
        "Flink": 0.477935648,
        "StreamFusion": 0.373676476
      },
      "stock_over_streamfusion": 1.2790091929683045
    },
    {
      "flink_line": "1.18.1",
      "type": "DOUBLE",
      "revision": "candidate",
      "dso_sha256": "18770cf146396c9fbc399db86b86891b2af61df2c59b2a74d780494cec47fe8f",
      "native_aggregate_route": true,
      "trials": [
        {
          "engine": "Flink",
          "trial": 0,
          "warmup": true,
          "seconds": 0.499008348
        },
        {
          "engine": "StreamFusion",
          "trial": 0,
          "warmup": true,
          "seconds": 0.285949046
        },
        {
          "engine": "StreamFusion",
          "trial": 1,
          "warmup": true,
          "seconds": 0.363222225
        },
        {
          "engine": "Flink",
          "trial": 1,
          "warmup": true,
          "seconds": 0.493419663
        },
        {
          "engine": "Flink",
          "trial": 2,
          "warmup": false,
          "seconds": 0.480625096
        },
        {
          "engine": "StreamFusion",
          "trial": 2,
          "warmup": false,
          "seconds": 0.28748788
        },
        {
          "engine": "StreamFusion",
          "trial": 3,
          "warmup": false,
          "seconds": 0.289009642
        },
        {
          "engine": "Flink",
          "trial": 3,
          "warmup": false,
          "seconds": 0.456160082
        },
        {
          "engine": "Flink",
          "trial": 4,
          "warmup": false,
          "seconds": 0.458880369
        },
        {
          "engine": "StreamFusion",
          "trial": 4,
          "warmup": false,
          "seconds": 0.273270895
        }
      ],
      "measured_seconds": {
        "Flink": [
          0.480625096,
          0.456160082,
          0.458880369
        ],
        "StreamFusion": [
          0.28748788,
          0.289009642,
          0.273270895
        ]
      },
      "median_seconds": {
        "Flink": 0.458880369,
        "StreamFusion": 0.28748788
      },
      "stock_over_streamfusion": 1.5961729204027664
    },
    {
      "flink_line": "1.18.1",
      "type": "DECIMAL(20,3)",
      "revision": "candidate",
      "dso_sha256": "18770cf146396c9fbc399db86b86891b2af61df2c59b2a74d780494cec47fe8f",
      "native_aggregate_route": true,
      "trials": [
        {
          "engine": "Flink",
          "trial": 0,
          "warmup": true,
          "seconds": 0.68588787
        },
        {
          "engine": "StreamFusion",
          "trial": 0,
          "warmup": true,
          "seconds": 0.461684201
        },
        {
          "engine": "StreamFusion",
          "trial": 1,
          "warmup": true,
          "seconds": 0.405795145
        },
        {
          "engine": "Flink",
          "trial": 1,
          "warmup": true,
          "seconds": 0.644956259
        },
        {
          "engine": "Flink",
          "trial": 2,
          "warmup": false,
          "seconds": 0.630930482
        },
        {
          "engine": "StreamFusion",
          "trial": 2,
          "warmup": false,
          "seconds": 0.417015871
        },
        {
          "engine": "StreamFusion",
          "trial": 3,
          "warmup": false,
          "seconds": 0.324897636
        },
        {
          "engine": "Flink",
          "trial": 3,
          "warmup": false,
          "seconds": 0.596152992
        },
        {
          "engine": "Flink",
          "trial": 4,
          "warmup": false,
          "seconds": 0.647356318
        },
        {
          "engine": "StreamFusion",
          "trial": 4,
          "warmup": false,
          "seconds": 0.339080523
        }
      ],
      "measured_seconds": {
        "Flink": [
          0.630930482,
          0.596152992,
          0.647356318
        ],
        "StreamFusion": [
          0.417015871,
          0.324897636,
          0.339080523
        ]
      },
      "median_seconds": {
        "Flink": 0.630930482,
        "StreamFusion": 0.339080523
      },
      "stock_over_streamfusion": 1.8607098880757595
    },
    {
      "flink_line": "2.2.1",
      "type": "DECIMAL(20,3)",
      "revision": "d13e9dc4",
      "dso_sha256": "18770cf146396c9fbc399db86b86891b2af61df2c59b2a74d780494cec47fe8f",
      "native_aggregate_route": false,
      "trials": [
        {
          "engine": "Flink",
          "trial": 0,
          "warmup": true,
          "seconds": 1.575625999
        },
        {
          "engine": "StreamFusion",
          "trial": 0,
          "warmup": true,
          "seconds": 0.853320645
        },
        {
          "engine": "StreamFusion",
          "trial": 1,
          "warmup": true,
          "seconds": 0.764031282
        },
        {
          "engine": "Flink",
          "trial": 1,
          "warmup": true,
          "seconds": 0.79151178
        },
        {
          "engine": "Flink",
          "trial": 2,
          "warmup": false,
          "seconds": 0.756728458
        },
        {
          "engine": "StreamFusion",
          "trial": 2,
          "warmup": false,
          "seconds": 0.674068355
        },
        {
          "engine": "StreamFusion",
          "trial": 3,
          "warmup": false,
          "seconds": 0.683932949
        },
        {
          "engine": "Flink",
          "trial": 3,
          "warmup": false,
          "seconds": 0.659556984
        },
        {
          "engine": "Flink",
          "trial": 4,
          "warmup": false,
          "seconds": 0.635895294
        },
        {
          "engine": "StreamFusion",
          "trial": 4,
          "warmup": false,
          "seconds": 0.665285144
        }
      ],
      "measured_seconds": {
        "Flink": [
          0.756728458,
          0.659556984,
          0.635895294
        ],
        "StreamFusion": [
          0.674068355,
          0.683932949,
          0.665285144
        ]
      },
      "median_seconds": {
        "Flink": 0.659556984,
        "StreamFusion": 0.674068355
      },
      "stock_over_streamfusion": 0.9784719592718457
    }
  ],
  "optimization_passes": 0,
  "validation": {
    "each_released_line": {
      "new_decimal_raw_changelog_checks": 12,
      "repeated_decimal_recovery_checks": 4,
      "new_floating_raw_changelog_checks": 6,
      "repeated_floating_recovery_checks": 4,
      "prior_primitive_changelog_checks": 19,
      "direct_state_recovery_rescaling_ttl_checks": 10
    },
    "native_work": "Every admitted SQL case requires consumed local/global work; candidate jobs require two local/global pairs; prior d13e9dc4 asserts aggregate fallback and zero substitutions.",
    "measurement_note": "Flink 2.2 FLOAT/DOUBLE completed all trials before the old benchmark type-list parser rejected the comma inside DECIMAL(20,3). The parser was corrected and the decimal profile rerun. The production library did not change.",
    "previous_floating_baseline": "Canonical d13e9dc4 FLOAT/DOUBLE fallback measurements are retained in floating-retracting-sum-2026-10-20.json; the added same-harness historical run here measures decimal fallback.",
    "limitations": [
      "Only memory-state FLOAT/DOUBLE/DECIMAL(20,3) throughput is measured; decimal precision/scale 38 and RocksDB have correctness/recovery evidence.",
      "These are conversion-inclusive complete jobs, not isolated Rust/Arrow admission timings.",
      "Unchanged upstream runtime and required CI remain pending consolidation."
    ],
    "reproduce": "SF_BENCHMARK=true mvn -Pbench -pl streamfusion-runtime -Dnative.build.skip=true -Dnative.resource.directory=<release-directory> -Dtest=RetractingSumPartialsBenchmark -Dsumretract.types=FLOAT,DOUBLE,DECIMAL(20,3) -Dsumretract.backends=memory surefire:test@default-test; add flink-1.18 profile for 1.18.1. Prior d13e9dc4 uses the same benchmark source and -Dsumretract.expectNative=false.",
    "native_regression": {
      "passed": 825,
      "ignored": 2,
      "profile": "release+mimalloc"
    },
    "suite_agent": {
      "passed": 50,
      "skipped": 1
    },
    "route_audit_checks": 35
  }
}
