djfrancesco commented on issue #47296: URL: https://github.com/apache/arrow/issues/47296#issuecomment-3170569035
It seems that my *friday night* reproducible code actually had three issues: 1. wrong format string (`arrow_schema_provider.c:50`): used "s" (int16) instead of "u" (UTF-8 string) 2. wrong ctypes signature (`test_pyarrow_schema_import.py:20`): the release callback was defined as `CFUNCTYPE(None, ctypes.c_void_p)` but should be `CFUNCTYPE(None, ctypes.POINTER(ArrowSchema))`; requires a to split the class definition from field assignment to avoid NameError. 3. wrong import function: used `Schema._import_from_c()` for a single field instead of `Field._import_from_c()` -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org