This is an automated email from the ASF dual-hosted git repository.
quinnj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-julia.git
The following commit(s) were added to refs/heads/main by this push:
new 94f7e37 Get dictionaries of children only when field.children not
nothing (#382)
94f7e37 is described below
commit 94f7e37f637878c9850ebe345664011a636e3ecb
Author: Önder Kartal <[email protected]>
AuthorDate: Thu May 25 22:27:50 2023 +0200
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.
---
src/table.jl | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
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 @@ function getdictionaries!(dictencoded, field)
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