Skip to content

Commit

Permalink
Python ticking: if no Barrage metadata, pass NULL to C++ handler (#5283)
Browse files Browse the repository at this point in the history
  • Loading branch information
kosak committed Mar 23, 2024
1 parent dcfc794 commit 4089d2b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions py/client-ticking/src/pydeephaven_ticking/_core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,13 @@ cdef class BarrageProcessor:
column_sources.push_back(cs)
sizes.push_back(len(values))

result = self._barrage_processor.ProcessNextChunk(column_sources, sizes, &raw_metadata[0],
raw_metadata.shape[0])
cdef const void *mdptr = NULL
cdef size_t mdsize = 0
if raw_metadata is not None:
mdptr = &raw_metadata[0]
mdsize = raw_metadata.shape[0]
result = self._barrage_processor.ProcessNextChunk(column_sources, sizes, mdptr, mdsize)

if result.has_value():
return TickingUpdate.create(deref(result))
return None
Expand Down

0 comments on commit 4089d2b

Please sign in to comment.