From 98a4299f51024ecd9a2f818523c32aabdce2e924 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Mon, 12 Oct 2020 14:58:22 +0200 Subject: [PATCH] ARROW-10285: [Python] Fix usage of deprecated num_children in pyarrow.orc submodule --- 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 d1f0925bd960..226d7e36cfbf 100644 --- a/python/pyarrow/orc.py +++ b/python/pyarrow/orc.py @@ -27,7 +27,7 @@ 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')