(root_allocator)
| 241 | |
| 242 | |
| 243 | def test_jvm_array_empty(root_allocator): |
| 244 | cls = f"org.apache.arrow.vector.{'IntVector'}" |
| 245 | jvm_vector = jpype.JClass(cls)("vector", root_allocator) |
| 246 | jvm_vector.allocateNew() |
| 247 | jvm_array = pa_jvm.array(jvm_vector) |
| 248 | assert len(jvm_array) == 0 |
| 249 | assert jvm_array.type == pa.int32() |
| 250 | |
| 251 | |
| 252 | # These test parameters mostly use an integer range as an input as this is |