Skip to content

Commit 4269766

Browse files
committed
test(13796): reproducer of overflow on capacity
1 parent fe53eaf commit 4269766

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

datafusion/functions/src/strings.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,3 +452,14 @@ impl ColumnarValueRef<'_> {
452452
}
453453
}
454454
}
455+
456+
#[cfg(test)]
457+
mod tests {
458+
use super::*;
459+
460+
#[test]
461+
fn test_overflow_string_array_builders() {
462+
let _builder = StringArrayBuilder::with_capacity(usize::MAX, usize::MAX);
463+
let _builder = LargeStringArrayBuilder::with_capacity(usize::MAX, usize::MAX);
464+
}
465+
}

0 commit comments

Comments
 (0)