Closed tomasz-at-nira closed 2 years ago
Per https://www.singlestore.com/forum/t/best-uuid-data-type/182/3 UUID should be stored as BINARY(16) in SingleStore.
UUID
BINARY(16)
SingleStore
If you actually do that and try to read the data with the lib it'll crash in _bytes_to_utf8 because decoding to UTF8 is impossible.
_bytes_to_utf8
https://github.com/memsql/memsql-python/blob/master/memsql/common/conversions.py#L10
Per https://www.singlestore.com/forum/t/best-uuid-data-type/182/3
UUID
should be stored asBINARY(16)
inSingleStore
.If you actually do that and try to read the data with the lib it'll crash in
_bytes_to_utf8
because decoding to UTF8 is impossible.https://github.com/memsql/memsql-python/blob/master/memsql/common/conversions.py#L10