Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/scripts/install_prereqs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ install_prereqs_for_macos() {
}

install_prereqs_for_centos7() {
# Centos 7 has been EOL'ed as of 07/01/2024. Use vault.centos.org instead of mirrorlist.centos.org
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
yum install -y -q which wget git &&
yum install -y -q autoconf automake libtool unzip &&
yum install -y -q cmake3 patch &&
Expand Down
19 changes: 11 additions & 8 deletions src/genomicsdb.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -372,14 +372,17 @@ cdef class _GenomicsDB:

cdef void* arrow_array = NULL
while True:
arrow_array = processor.arrow_array()
if arrow_array:
array_capsule = pycapsule_get_arrow_array(arrow_array)
array_obj = _ArrowArrayWrapper._import_from_c_capsule(schema_capsule, array_capsule)
arrays = [pa.array(array_obj.child(i)) for i in range(array_obj.n_children)]
yield pa.RecordBatch.from_arrays(arrays, schema=schema).serialize().to_pybytes()
else:
break
try:
arrow_array = processor.arrow_array()
if arrow_array:
array_capsule = pycapsule_get_arrow_array(arrow_array)
array_obj = _ArrowArrayWrapper._import_from_c_capsule(schema_capsule, array_capsule)
arrays = [pa.array(array_obj.child(i)) for i in range(array_obj.n_children)]
yield pa.RecordBatch.from_arrays(arrays, schema=schema).serialize().to_pybytes()
else:
break
except Exception as e:
raise GenomicsDBException("Exception from processing of arrow arrays", e)

if batching:
query_thread.join()
Expand Down
Loading