You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by jo...@apache.org on 2022/02/25 15:16:15 UTC

[arrow] branch master updated: ARROW-15781: [Python] Release GIL in ensure_complete_metadata

This is an automated email from the ASF dual-hosted git repository.

jorisvandenbossche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new f135b98  ARROW-15781: [Python] Release GIL in ensure_complete_metadata
f135b98 is described below

commit f135b986db44358c1b41d7552d0e77009aa8c1c7
Author: David Li <li...@gmail.com>
AuthorDate: Fri Feb 25 16:13:43 2022 +0100

    ARROW-15781: [Python] Release GIL in ensure_complete_metadata
    
    Closes #12501.
    
    Closes #12509 from lidavidm/arrow-15781
    
    Authored-by: David Li <li...@gmail.com>
    Signed-off-by: Joris Van den Bossche <jo...@gmail.com>
---
 python/pyarrow/_dataset_parquet.pyx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/python/pyarrow/_dataset_parquet.pyx b/python/pyarrow/_dataset_parquet.pyx
index 11c6eed..730370c 100644
--- a/python/pyarrow/_dataset_parquet.pyx
+++ b/python/pyarrow/_dataset_parquet.pyx
@@ -314,7 +314,8 @@ cdef class ParquetFileFragment(FileFragment):
         Ensure that all metadata (statistics, physical schema, ...) have
         been read and cached in this fragment.
         """
-        check_status(self.parquet_file_fragment.EnsureCompleteMetadata())
+        with nogil:
+            check_status(self.parquet_file_fragment.EnsureCompleteMetadata())
 
     @property
     def row_groups(self):