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

kszucs 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 12281c4  ARROW-10285: [Python] Fix usage of deprecated num_children in 
pyarrow.orc submodule
12281c4 is described below

commit 12281c4d9eeaee831231d9ffc9a71cf5a7cbeaa1
Author: Joris Van den Bossche <[email protected]>
AuthorDate: Mon Oct 12 19:57:56 2020 +0200

    ARROW-10285: [Python] Fix usage of deprecated num_children in pyarrow.orc 
submodule
    
    Closes #8441 from jorisvandenbossche/ARROW-10285
    
    Authored-by: Joris Van den Bossche <[email protected]>
    Signed-off-by: Krisztián Szűcs <[email protected]>
---
 python/pyarrow/orc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyarrow/orc.py b/python/pyarrow/orc.py
index d1f0925..226d7e3 100644
--- a/python/pyarrow/orc.py
+++ b/python/pyarrow/orc.py
@@ -27,7 +27,7 @@ import pyarrow._orc as _orc
 def _is_map(typ):
     return (types.is_list(typ) and
             types.is_struct(typ.value_type) and
-            typ.value_type.num_children == 2 and
+            typ.value_type.num_fields == 2 and
             typ.value_type[0].name == 'key' and
             typ.value_type[1].name == 'value')
 

Reply via email to