Skip to content

Commit c0598a6

Browse files
chore[fuzzer]: disable fsl for now (#5153)
Signed-off-by: Joe Isaacs <[email protected]>
1 parent 0425641 commit c0598a6

File tree

1 file changed

+8
-8
lines changed
  • vortex-dtype/src/arbitrary

1 file changed

+8
-8
lines changed

vortex-dtype/src/arbitrary/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
use std::sync::Arc;
55

66
use arbitrary::{Arbitrary, Result, Unstructured};
7-
use vortex_error::VortexExpect;
87

98
use crate::{
109
DType, DecimalDType, FieldName, FieldNames, NativeDecimalType, Nullability, PType,
@@ -28,7 +27,8 @@ impl<'a> Arbitrary<'a> for FieldName {
2827

2928
fn random_dtype(u: &mut Unstructured<'_>, depth: u8) -> Result<DType> {
3029
const BASE_TYPE_COUNT: i32 = 5;
31-
const CONTAINER_TYPE_COUNT: i32 = 3;
30+
// TODO(joe): update to 3 once fsl works
31+
const CONTAINER_TYPE_COUNT: i32 = 2;
3232
let max_dtype_kind = if depth == 0 {
3333
BASE_TYPE_COUNT
3434
} else {
@@ -45,12 +45,12 @@ fn random_dtype(u: &mut Unstructured<'_>, depth: u8) -> Result<DType> {
4545
// container types
4646
6 => DType::Struct(random_struct_dtype(u, depth - 1)?, u.arbitrary()?),
4747
7 => DType::List(Arc::new(random_dtype(u, depth - 1)?), u.arbitrary()?),
48-
8 => DType::FixedSizeList(
49-
Arc::new(random_dtype(u, depth - 1)?),
50-
// We limit the list size to 3 rather (following random struct fields).
51-
u.choose_index(3)?.try_into().vortex_expect("impossible"),
52-
u.arbitrary()?,
53-
),
48+
// 8 => DType::FixedSizeList(
49+
// Arc::new(random_dtype(u, depth - 1)?),
50+
// // We limit the list size to 3 rather (following random struct fields).
51+
// u.choose_index(3)?.try_into().vortex_expect("impossible"),
52+
// u.arbitrary()?,
53+
// ),
5454
// Null,
5555
// Extension(ExtDType, Nullability),
5656
_ => unreachable!("Number out of range"),

0 commit comments

Comments
 (0)