jorisvandenbossche commented on PR #36846:
URL: https://github.com/apache/arrow/pull/36846#issuecomment-1690002282
@Fokko I needed this small diff to get pyarrow building locally:
```diff
diff --git a/python/pyarrow/types.pxi b/python/pyarrow/types.pxi
index 68efd1375..53b1fe65b 100644
--- a/python/pyarrow/types.pxi
+++ b/python/pyarrow/types.pxi
@@ -3239,13 +3239,12 @@ def unify_schemas(schemas, *, options=None):
c_schemas.push_back(pyarrow_unwrap_schema(schema))
if isinstance(options, str):
if options == "default":
- options = CField.CMergeOptions.Defaults()
+ c_options = CField.CMergeOptions.Defaults()
elif options == "permissive":
- options = CField.CMergeOptions.Permissive()
+ c_options = CField.CMergeOptions.Permissive()
else:
raise ValueError(f"Invalid merge option: {options}")
-
- if options:
+ elif options is not None:
c_options = (<FieldMergeOptions> options).c_options
else:
c_options = CField.CMergeOptions.Defaults()
```
--
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]