You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When fetching a map containing another map (lets call this sub_map), the sub_map is returned as an array and not as a map object. I would expect that the sub_map would be of the map type so that map methods can be used on it (such as riakc_map:fetch_keys(Map) )
Code
Note: I am using the riak-erlang-client in elixir, hence the elixir syntax.
This seems incorrect as it seems to remove some of the value of using maps within maps, since the whole object will have to be recreated and re-updated in order to change any values.
Thanks in advance for any help you can provide.
The text was updated successfully, but these errors were encountered:
Basho-JIRA
changed the title
Maps containing maps are returned as arrays and not map objects
Maps containing maps are returned as arrays and not map objects [JIRA: CLIENTS-1025]
Nov 10, 2016
When fetching a map containing another map (lets call this sub_map), the sub_map is returned as an array and not as a map object. I would expect that the sub_map would be of the map type so that map methods can be used on it (such as
riakc_map:fetch_keys(Map)
)Code
Note: I am using the riak-erlang-client in elixir, hence the elixir syntax.
Example of creating the map:
example of fetching the map:
at this point I would expect sub_map to be a map object which I can call fetch keys or fetch on, instead the object returned is an array, like so:
This seems incorrect as it seems to remove some of the value of using maps within maps, since the whole object will have to be recreated and re-updated in order to change any values.
Thanks in advance for any help you can provide.
The text was updated successfully, but these errors were encountered: