gemini icon indicating copy to clipboard operation
gemini copied to clipboard

'varint' and 'decimal' scylla types does`t work properly as a maps key.

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

gocql data parsing from scylla defines 'varint' scylla type as 'big.Int' go type. big.Int not compareble. Not compareble types can`t be as a maps key. gocql got out of the situation by create pointer on big.Int. This led to the fact that a maps key - pointer, not a big.Int. With 'decimal' same situation because gocql defines 'decimal' as inf.Dec go type, which contains big.Int.

illia-li avatar Aug 14 '23 12:08 illia-li

@dkropachev how easy to fix?

roydahan avatar Dec 19 '23 11:12 roydahan

@dkropachev how easy to fix?

This fix is too complicated, i won't merge it. I am working on another one, that is less crazy, but still on the line.

dkropachev avatar Dec 19 '23 12:12 dkropachev