Skip to content

Commit 147bcd6

Browse files
committed
GH-49156: [Python] Require GIL for string comparison (#49161)
### Rationale for this change With Cython 3.3.0.a0 this failed. After some discussion it seems that this should have always had to require the GIL. ### What changes are included in this PR? Moving statement out of the `with nogil` context manager. ### Are these changes tested? Existing CI builds pyarrow. ### Are there any user-facing changes? No * GitHub Issue: #49156 Authored-by: Raúl Cumplido <raulcumplido@gmail.com> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
1 parent e4f922b commit 147bcd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyarrow/table.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6316,8 +6316,8 @@ def concat_tables(tables, MemoryPool memory_pool=None, str promote_options="none
63166316
"default" if promote_options == "none" else promote_options
63176317
)
63186318

6319+
options.unify_schemas = promote_options != "none"
63196320
with nogil:
6320-
options.unify_schemas = promote_options != "none"
63216321
c_result_table = GetResultValue(
63226322
ConcatenateTables(c_tables, options, pool))
63236323

0 commit comments

Comments
 (0)