-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unset slice occur #27
Comments
I'm not sure there is a difference in Elasticsearch between an empty array and a missing field. https://www.elastic.co/guide/en/elasticsearch/reference/current/array.html
I could be wrong though. |
Sorry, disregard my last comment. I thought this issue was in a different repository. I just pushed a fix for this and will create a new release for it. |
that's great! |
Mistakes happened when i migrates docs from one table to another.
source doc like
{"A":[], "B":"name"}
result doc like
{"B":"name"}
that A field was unset
when param "a" of func "normalizeDocSlice" was a zero length slice that not nil pointer. So the returned var "avs" was a nil.
i guess
var avs = make([]interface{}, 0)
may solve my problemThe text was updated successfully, but these errors were encountered: