Skip to content

Commit 0745bb4

Browse files
authored
[Variant] Fix the index of an item in VariantArray in a unit test (#8725)
# Which issue does this PR close? Related-to: #8625 # Rationale for this change 63fe99a introduced the new unit test. I believe the index=3 is a typo. It should be =2. # What changes are included in this PR? Fixed the array index. # Are these changes tested? The fix is in a unit test. # Are there any user-facing changes? No. Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
1 parent 533fe4f commit 0745bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parquet-variant-compute/src/variant_array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ mod test {
15061506
assert!(!variant_array.is_null(1));
15071507
assert_eq!(variant_array.value(1), Variant::BooleanFalse);
15081508

1509-
assert!(!variant_array.is_null(3));
1509+
assert!(!variant_array.is_null(2));
15101510
assert_eq!(
15111511
variant_array.value(2),
15121512
Variant::ShortString(ShortString::try_new("norm").unwrap())

0 commit comments

Comments
 (0)