MCPcopy Create free account
hub / github.com/apache/arrow / test_chunked_array_non_cpu

Function test_chunked_array_non_cpu

python/pyarrow/tests/test_table.py:3553–3691  ·  view source on GitHub ↗
(cuda_context, cpu_chunked_array, cuda_chunked_array,
                               cpu_and_cuda_chunked_array)

Source from the content-addressed store, hash-verified

3551
3552
3553def test_chunked_array_non_cpu(cuda_context, cpu_chunked_array, cuda_chunked_array,
3554 cpu_and_cuda_chunked_array):
3555 # type test
3556 assert cuda_chunked_array.type == cpu_chunked_array.type
3557
3558 # length() test
3559 assert cuda_chunked_array.length() == cpu_chunked_array.length()
3560
3561 # str() test
3562 assert str(cuda_chunked_array) == str(cpu_chunked_array)
3563
3564 # repr() test
3565 assert str(cuda_chunked_array) in repr(cuda_chunked_array)
3566
3567 # validate() test
3568 cuda_chunked_array.validate()
3569 with pytest.raises(NotImplementedError):
3570 cuda_chunked_array.validate(full=True)
3571
3572 # null_count test
3573 with pytest.raises(NotImplementedError):
3574 cuda_chunked_array.null_count
3575
3576 # nbytes() test
3577 with pytest.raises(NotImplementedError):
3578 cuda_chunked_array.nbytes
3579
3580 # get_total_buffer_size() test
3581 with pytest.raises(NotImplementedError):
3582 cuda_chunked_array.get_total_buffer_size()
3583
3584 # getitem() test
3585 with pytest.raises(NotImplementedError):
3586 cuda_chunked_array[0]
3587
3588 # is_null() test
3589 with pytest.raises(NotImplementedError):
3590 cuda_chunked_array.is_null()
3591
3592 # is_nan() test
3593 with pytest.raises(NotImplementedError):
3594 cuda_chunked_array.is_nan()
3595
3596 # is_valid() test
3597 with pytest.raises(NotImplementedError):
3598 cuda_chunked_array.is_valid()
3599
3600 # fill_null() test
3601 with pytest.raises(NotImplementedError):
3602 cuda_chunked_array.fill_null(0)
3603
3604 # equals() test
3605 with pytest.raises(NotImplementedError):
3606 cuda_chunked_array == cuda_chunked_array
3607
3608 # to_pandas() test
3609 with pytest.raises(NotImplementedError):
3610 cuda_chunked_array.to_pandas()

Callers

nothing calls this directly

Calls 13

lenFunction · 0.85
is_nullMethod · 0.80
filterMethod · 0.80
__reduce__Method · 0.80
lengthMethod · 0.45
validateMethod · 0.45
is_validMethod · 0.45
castMethod · 0.45
uniqueMethod · 0.45
indexMethod · 0.45
sliceMethod · 0.45
takeMethod · 0.45

Tested by

no test coverage detected