()
| 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] |