Skip to content

Commit 0dfae70

Browse files
authored
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 654fb28 commit 0dfae70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/pyarrow/table.pxi

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

6289+
options.unify_schemas = promote_options != "none"
62896290
with nogil:
6290-
options.unify_schemas = promote_options != "none"
62916291
c_result_table = GetResultValue(
62926292
ConcatenateTables(c_tables, options, pool))
62936293

0 commit comments

Comments
 (0)