gemini
gemini copied to clipboard
Gemini types: 'BagType', 'MapType', 'TupleType', 'UDTType' doesn't meet 'gocql.Marshal' requirements
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