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:3664–3802  ·  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

3662
3663
3664def test_chunked_array_non_cpu(cuda_context, cpu_chunked_array, cuda_chunked_array,
3665 cpu_and_cuda_chunked_array):
3666 # type test
3667 assert cuda_chunked_array.type == cpu_chunked_array.type
3668
3669 # length() test
3670 assert cuda_chunked_array.length() == cpu_chunked_array.length()
3671
3672 # str() test
3673 assert str(cuda_chunked_array) == str(cpu_chunked_array)
3674
3675 # repr() test
3676 assert str(cuda_chunked_array) in repr(cuda_chunked_array)
3677
3678 # validate() test
3679 cuda_chunked_array.validate()
3680 with pytest.raises(NotImplementedError):
3681 cuda_chunked_array.validate(full=True)
3682
3683 # null_count test
3684 with pytest.raises(NotImplementedError):
3685 cuda_chunked_array.null_count
3686
3687 # nbytes() test
3688 with pytest.raises(NotImplementedError):
3689 cuda_chunked_array.nbytes
3690
3691 # get_total_buffer_size() test
3692 with pytest.raises(NotImplementedError):
3693 cuda_chunked_array.get_total_buffer_size()
3694
3695 # getitem() test
3696 with pytest.raises(NotImplementedError):
3697 cuda_chunked_array[0]
3698
3699 # is_null() test
3700 with pytest.raises(NotImplementedError):
3701 cuda_chunked_array.is_null()
3702
3703 # is_nan() test
3704 with pytest.raises(NotImplementedError):
3705 cuda_chunked_array.is_nan()
3706
3707 # is_valid() test
3708 with pytest.raises(NotImplementedError):
3709 cuda_chunked_array.is_valid()
3710
3711 # fill_null() test
3712 with pytest.raises(NotImplementedError):
3713 cuda_chunked_array.fill_null(0)
3714
3715 # equals() test
3716 with pytest.raises(NotImplementedError):
3717 cuda_chunked_array == cuda_chunked_array
3718
3719 # to_pandas() test
3720 with pytest.raises(NotImplementedError):
3721 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