diff --git a/plugin/trino-cassandra/src/main/java/io/trino/plugin/cassandra/CassandraSession.java b/plugin/trino-cassandra/src/main/java/io/trino/plugin/cassandra/CassandraSession.java index 0f37acc59842..67fc91c69781 100644 --- a/plugin/trino-cassandra/src/main/java/io/trino/plugin/cassandra/CassandraSession.java +++ b/plugin/trino-cassandra/src/main/java/io/trino/plugin/cassandra/CassandraSession.java @@ -480,7 +480,9 @@ private List buildPartitionsFromFilterPrefixes(CassandraTabl CassandraType cassandraType = columnHandle.getCassandraType(); switch (cassandraType.getKind()) { + case ASCII: case TEXT: + case VARCHAR: Slice slice = (Slice) value; if (isComposite) { buffer.putShort((short) slice.length());