mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 00:56:31 +08:00
Fix Cython compilation, verify pyarrow.Table.from_batches still works
Change-Id: I93e1744b45f0d3dce65ac11a43bc7726ce3209ce
This commit is contained in:
1 parent
af28755af4
commit
f3cb170020
1 file changed
+3
-5
@@ -600,17 +600,15 @@ cdef class Table:
|
||||
shared_ptr[CTable] c_table
|
||||
RecordBatch batch
|
||||
Table table
|
||||
c_string c_name
|
||||
|
||||
if name is None:
|
||||
name = b''
|
||||
else:
|
||||
name = tobytes(name)
|
||||
c_name = b'' if name is None else tobytes(name)
|
||||
|
||||
for batch in batches:
|
||||
c_batches.push_back(batch.sp_batch)
|
||||
|
||||
with nogil:
|
||||
check_status(CTable.FromRecordBatches(name, c_batches, &c_table))
|
||||
check_status(CTable.FromRecordBatches(c_name, c_batches, &c_table))
|
||||
|
||||
table = Table()
|
||||
table.init(c_table)
|
||||
|
||||
Reference in new issue
Block a user