From 92fcf47d9bc22195f4b3d5fe4ebd7f53abaa6ad9 Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Sun, 23 Jun 2024 07:30:26 +0100 Subject: [PATCH] fix: table kind should not change over the fse code trailing bits (#1345) --- aggregator/src/aggregation/decoder.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/aggregator/src/aggregation/decoder.rs b/aggregator/src/aggregation/decoder.rs index fdf99153e9..702b23a57b 100644 --- a/aggregator/src/aggregation/decoder.rs +++ b/aggregator/src/aggregation/decoder.rs @@ -2785,6 +2785,13 @@ impl DecoderConfig { ]), ); + // The FSE table kind remains the same. + cb.require_equal( + "table_kind remains the same for trailing bits in tag=FseCode", + meta.query_advice(config.fse_decoder.table_kind, Rotation::cur()), + meta.query_advice(config.fse_decoder.table_kind, Rotation::prev()), + ); + cb.gate(condition) }, );