From 5ab2b499ea4ebb0b3f9d1c5b952740c15a0246e4 Mon Sep 17 00:00:00 2001 From: abicky Date: Wed, 31 Oct 2018 21:40:39 +0900 Subject: [PATCH] Support ASCII and VARCHAR --- .../main/java/io/trino/plugin/cassandra/CassandraSession.java | 2 ++ 1 file changed, 2 insertions(+) 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());