MCPcopy Create free account
hub / github.com/apache/datafusion / test_string_overflow

Function test_string_overflow

datafusion/physical-expr-common/src/binary_map.rs:816–824  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

814 expected = "Put 2147483648 bytes in buffer, more than can be represented by a i32"
815 )]
816 fn test_string_overflow() {
817 let mut set = ArrowBytesSet::<i32>::new(OutputType::Utf8);
818 for value in ["a", "b", "c"] {
819 // 1GB strings, so 3rd is over 2GB and should panic
820 let arr: ArrayRef =
821 Arc::new(StringArray::from_iter_values([value.repeat(1 << 30)]));
822 set.insert(&arr);
823 }
824 }
825
826 // inserting strings into the set does not increase reported memory
827 #[test]

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…