In Cassandra, varchar is a synonym for text: if you create a table with a varchar column, DESC TABLE displays text.
In the driver, we consider the two types as different (the comparison is based on the DataType.NAME enum). This can lead to counter-intuitive behavior with tuples:
This is reflected in TupleTest and UserTypesTest, where we have to compare using toString().
In Cassandra,
varchar
is a synonym fortext
: if you create a table with avarchar
column,DESC TABLE
displaystext
.In the driver, we consider the two types as different (the comparison is based on the
DataType.NAME
enum). This can lead to counter-intuitive behavior with tuples:This is reflected in
TupleTest
andUserTypesTest
, where we have to compare usingtoString()
.