Get dictionaries of children only when field.children not nothing (#382)
Closes #375
This PR fixes a problem in reading an Arrow IPC file generated by C#
Apache.Arrow 10.0.1 where the last recursive iteration to get the
dictionaries returns `nothing` instead of an empty iterable.
diff --git a/src/table.jl b/src/table.jl
index b2d2c80..c32fe5a 100644
--- a/src/table.jl
+++ b/src/table.jl
@@ -406,8 +406,10 @@
if d !== nothing
dictencoded[d.id] = field
end
- for child in field.children
- getdictionaries!(dictencoded, child)
+ if field.children !== nothing
+ for child in field.children
+ getdictionaries!(dictencoded, child)
+ end
end
return
end