MCPcopy Create free account
hub / github.com/apache/arrow / __call__

Method __call__

python/pyarrow/tests/test_udf.py:687–693  ·  view source on GitHub ↗
(self, ctx)

Source from the content-addressed store, hash-verified

685 self.n = 3
686
687 def __call__(self, ctx):
688 if self.n == 0:
689 batch = _record_batch_from_iters(schema, [], [])
690 else:
691 self.n -= 1
692 batch = _record_batch_for_range(schema, self.n)
693 return batch.to_struct_array()
694 return lambda ctx: Generator()
695
696

Callers

nothing calls this directly

Calls 2

_record_batch_from_itersFunction · 0.85
_record_batch_for_rangeFunction · 0.85

Tested by

no test coverage detected