Skip to content

Commit c787611

Browse files
committed
Declare the frozen v1 wire ID from the decimal compression scheme
Signed-off-by: Matt Katz <mhkatz97@gmail.com>
1 parent 399287d commit c787611

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎vortex-btrblocks/src/schemes/decimal.rs‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ use vortex_array::ArrayRef;
88
use vortex_array::Canonical;
99
use vortex_array::ExecutionCtx;
1010
use vortex_array::IntoArray;
11-
use vortex_array::VTable;
1211
use vortex_array::arrays::DecimalArray;
1312
use vortex_array::arrays::PrimitiveArray;
1413
use vortex_array::arrays::decimal::narrowed_decimal;
1514
use vortex_array::dtype::DecimalType;
1615
use vortex_compressor::scheme::CompressionEstimate;
1716
use vortex_compressor::scheme::EstimateVerdict;
1817
use vortex_decimal_byte_parts::DecimalByteParts;
18+
use vortex_decimal_byte_parts::decimal_byte_parts_v1_id;
1919
use vortex_error::VortexResult;
2020

2121
use crate::ArrayAndStats;
@@ -41,7 +41,9 @@ impl Scheme for DecimalScheme {
4141
}
4242

4343
fn produced_encodings(&self) -> Vec<ArrayId> {
44-
vec![DecimalByteParts.id()]
44+
// This scheme only builds single-part arrays, which serialize under the frozen v1 ID.
45+
// The in-memory ID is the v2 wire ID, which no edition permits yet.
46+
vec![decimal_byte_parts_v1_id()]
4547
}
4648

4749
/// Children: primitive=0.

0 commit comments

Comments
 (0)