Object with map of map

Hi there!

While using GetObject I ran into an issue regarding a member variable of the type map[string]map[int64]byte (or I’m just not getting it right ;)):

type Data struct{

Results map[string]map[int64]byte `as:“b”`

}

which gives me a reflect panic:

panic: reflect.Value.Convert: value of type map[interface {}]interface {} cannot be converted to type map[int64]uint8 [recovered] panic: reflect.Value.Convert: value of type map[interface {}]interface {} cannot be converted to type map[int64]uint8

While using GetObject with a map[interface{}map[interface{}]interface{} works just fine though I’d love to avoid writing custom cast routines. Is there an easier way to get a map of a map off a record without using custom cast routines?

Thanks

Korbi

Hi!

Thanks for your report. This looks like a bug. I’ll look into it and release a fix latest Monday.

You can report issues at the github repo for better issue tracking and notifications: GitHub - aerospike/aerospike-client-go: Aerospike Client Go

Cheers,

K.