Skip to content
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

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

Open
illia-li opened this issue Jun 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@illia-li
Copy link
Contributor

illia-li commented Jun 14, 2023

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 illia-li changed the title Gemini types: 'BagType', 'MapType', 'TupleType', 'UDTType' doesn't meet the requirements of 'gocql.Marshal' Gemini types: 'BagType', 'MapType', 'TupleType', 'UDTType' doesn't meet 'gocql.Marshal' requirements Jun 14, 2023
@dkropachev dkropachev added the bug Something isn't working label Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants