You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
arrow-row on fixed size binary/list with size 0 and no nulls return wrong length #10270
when size is 0 and no nulls the default length is 0 in fixed size binary array, which is wrong for non empty arrays
To Reproduce
#[test]fntest_zero_width_fixed_size_binary_roundtrip(){for sort_option inall_sort_options(){// With a zero byte width and no nulls, the decoded length cannot be// inferred from the value or null buffers and must come from the row countfor with_null in[true,false]{letmut builder = FixedSizeBinaryBuilder::new(0);for _ in0..5{
builder.append_value([]).unwrap();}if with_null {
builder.append_null();}let col = Arc::new(builder.finish())asArrayRef;let converter = RowConverter::new(vec![SortField::new_with_options(DataType::FixedSizeBinary(0),
sort_option,)]).unwrap();let rows = converter.convert_columns(&[Arc::clone(&col)]).unwrap();let back = converter.convert_rows(&rows).unwrap();assert_eq!(&back[0],&col);
back[0].to_data().validate_full().unwrap();}}}
changed the title [-]arrow-row on fixed size binary with size 0 and no nulls return wrong length[/-][+]arrow-row on fixed size binary/list with size 0 and no nulls return wrong length[/+]on Jul 2, 2026
Activity
rluvaton commentedon Jul 2, 2026
take
already fixing
[-]arrow-row on fixed size binary with size 0 and no nulls return wrong length[/-][+]arrow-row on fixed size binary/list with size 0 and no nulls return wrong length[/+]fix(arrow-row): allow to convert non empty fixed size binary/list arr…