vibhatha commented on code in PR #13500:
URL: https://github.com/apache/arrow/pull/13500#discussion_r912588912
##########
python/pyarrow/public-api.pxi:
##########
@@ -416,3 +416,42 @@ cdef api object pyarrow_wrap_batch(
cdef RecordBatch batch = RecordBatch.__new__(RecordBatch)
batch.init(cbatch)
return batch
+
+
+cdef api bint pyarrow_is_function_registry(object registry):
+ return isinstance(registry, BaseFunctionRegistry)
+
+
+cdef api bint pyarrow_is_extension_id_registry(object registry):
+ return isinstance(registry, ExtensionIdRegistry)
+
+
+cdef api CFunctionRegistry* pyarrow_unwrap_function_registry(object registry):
+ cdef BaseFunctionRegistry reg
+ if pyarrow_is_function_registry(registry):
+ reg = <BaseFunctionRegistry>(registry)
+ return reg.registry
+
Review Comment:
nit: Maybe remove this empty line?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]