YugaByte DB Community Forum

Ascii datatype for Cassandra?


When I’m going to create a table in Cassandra with “ascii” datatype - it’s not working, complaining that datatype is not exist. Is it possible to fix that somehow?
In Cassandra it’s one of standard data types - https://docs.datastax.com/en/cql/3.3/cql/cql_reference/cql_data_types_c.html



Yes, we don’t support ascii yet. But we support “text/varchar”. If you use text/varchar as the datatype, Unicode characters will be serialized into UTF-8 and UTF-8 encoding is designed in such a way that ASCII characters in it use only 1 byte. So there is really no difference in storage compared to “ascii” type.

Can you use text/varchar instead?