gemini icon indicating copy to clipboard operation
gemini copied to clipboard

Gemini types: 'BagType', 'MapType', 'TupleType', 'UDTType' doesn't meet 'gocql.Marshal' requirements

Open illia-li opened this issue 2 years ago • 0 comments

Scylla can use collection and udt types as primary keys, but gemini cant. Reason: gemini use gocql.Marshal for creating partition keys hash, but 'BagType', 'MapType', 'TupleType', 'UDTType' or/and processing with values of this types doesn't meet the requirements of 'gocql.Marshal'. That`s leads to errors;

Error on get hash for table:pkSet_ck3_col5, values:[0xc00039a040 0xc00039a060 0xc00039a080 0xc00039a0a0]
PartitionColumns:[[1 1] [1.110223e-16 1.110223e-16] [01 00] [1.1.1.1 1.1.1.1]]
Error is: marshal: can not marshal non collection type into list
panic: interface conversion: gocql.TypeInfo is gocql.NativeType, not gocql.UDTTypeInfo [recovered]
panic: interface conversion: gocql.TypeInfo is gocql.NativeType, not gocql.UDTTypeInfo

illia-li avatar Jun 14 '23 19:06 illia-li