use int32 for list_size

This commit is contained in:
Joris Van den Bossche committed 2019-12-10 11:14:55 +01:00
1 parent 88a5cbdd98
commit cb68db4d50
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -492,7 +492,7 @@ std::shared_ptr<DataType> FixedSizeListArray::value_type() const {
std::shared_ptr<Array> FixedSizeListArray::values() const { return values_; }
Status FixedSizeListArray::FromArrays(const std::shared_ptr<Array>& values,
int64_t list_size, std::shared_ptr<Array>* out) {
int32_t list_size, std::shared_ptr<Array>* out) {
if (list_size < 0) {
return Status::Invalid("list_size needs to be a positive integer");
}
+1 -1
View File
@@ -741,7 +741,7 @@ class ARROW_EXPORT FixedSizeListArray : public Array {
/// \param[in] values Array containing list values
/// \param[in] list_size The fixed length of each list
/// \param[out] out Will have length equal to values.length() / list_size
static Status FromArrays(const std::shared_ptr<Array>& values, int64_t list_size,
static Status FromArrays(const std::shared_ptr<Array>& values, int32_t list_size,
std::shared_ptr<Array>* out);
protected:
+1 -1
View File
@@ -1444,7 +1444,7 @@ cdef class FixedSizeListArray(Array):
"""
@staticmethod
def from_arrays(values, int64_t list_size, MemoryPool pool=None):
def from_arrays(values, int32_t list_size, MemoryPool pool=None):
"""
Construct FixedSizeListArray from array of values and a list length.
+1 -1
View File
@@ -489,7 +489,7 @@ cdef extern from "arrow/api.h" namespace "arrow" nogil:
cdef cppclass CFixedSizeListArray" arrow::FixedSizeListArray"(CArray):
@staticmethod
CStatus FromArrays(const shared_ptr[CArray]& values, int64_t list_size,
CStatus FromArrays(const shared_ptr[CArray]& values, int32_t list_size,
shared_ptr[CArray]* out)
int64_t value_offset(int i)