diff --git a/python/pyarrow/array.pxi b/python/pyarrow/array.pxi index bf9a6d67228..69b24c0b167 100644 --- a/python/pyarrow/array.pxi +++ b/python/pyarrow/array.pxi @@ -1354,6 +1354,14 @@ cdef class Array(_PandasConvertible): The concrete type returned depends on the datatype. + .. warning:: + + The caller is responsible for providing valid Arrow data. + Only basic validation checks are performed when constructing + the array. Call ``validate(full=True)`` on the resulting array + before using it to perform thorough validation checks. + Using an array with invalid data may lead to crashes. + Parameters ---------- type : DataType @@ -4211,6 +4219,14 @@ cdef class StringArray(Array): If there are nulls in the data, also a null_bitmap and the matching null_count must be passed. + .. warning:: + + The caller is responsible for providing valid Arrow data. + Only basic validation checks are performed when constructing + the array. Call ``validate(full=True)`` on the resulting array + before using it to perform thorough validation checks. + Using an array with invalid data may lead to crashes. + Parameters ---------- length : int @@ -4249,6 +4265,14 @@ cdef class LargeStringArray(Array): If there are nulls in the data, also a null_bitmap and the matching null_count must be passed. + .. warning:: + + The caller is responsible for providing valid Arrow data. + Only basic validation checks are performed when constructing + the array. Call ``validate(full=True)`` on the resulting array + before using it to perform thorough validation checks. + Using an array with invalid data may lead to crashes. + Parameters ---------- length : int @@ -4369,6 +4393,14 @@ cdef class DictionaryArray(Array): """ Construct a DictionaryArray from buffers. + .. warning:: + + The caller is responsible for providing valid Arrow data. + Only basic validation checks are performed when constructing + the array. Call ``validate(full=True)`` on the resulting array + before using it to perform thorough validation checks. + Using an array with invalid data may lead to crashes. + Parameters ---------- type : pyarrow.DataType