From 9c8b5979754855d06226f6c3879aee04cabcb3af Mon Sep 17 00:00:00 2001 From: Michael Mior Date: Mon, 20 Mar 2017 17:19:37 -0400 Subject: [PATCH] [CALCITE-1716] Fix Cassandra integration tests --- .../java/org/apache/calcite/test/CassandraAdapterIT.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cassandra/src/test/java/org/apache/calcite/test/CassandraAdapterIT.java b/cassandra/src/test/java/org/apache/calcite/test/CassandraAdapterIT.java index f1e87ff1b821..bca923344f64 100644 --- a/cassandra/src/test/java/org/apache/calcite/test/CassandraAdapterIT.java +++ b/cassandra/src/test/java/org/apache/calcite/test/CassandraAdapterIT.java @@ -71,7 +71,7 @@ protected boolean enabled() { .returns("username=!PUBLIC!; time=e8754000-80b8-1fe9-8e73-e3698c967ddd; " + "tweet_id=f3c329de-d05b-11e5-b58b-90e2ba530b12\n") .explainContains("PLAN=CassandraToEnumerableConverter\n" - + " CassandraFilter(condition=[=(CAST($0):VARCHAR(8) CHARACTER SET \"ISO-8859-1\" COLLATE \"ISO-8859-1$en_US$primary\", '!PUBLIC!')])\n" + + " CassandraFilter(condition=[=($0, '!PUBLIC!')])\n" + " CassandraTableScan(table=[[twissandra, userline]]"); } @@ -96,7 +96,7 @@ protected boolean enabled() { .returnsCount(146) .explainContains("PLAN=CassandraToEnumerableConverter\n" + " CassandraSort(sort0=[$1], dir0=[DESC])\n" - + " CassandraFilter(condition=[=(CAST($0):VARCHAR(8) CHARACTER SET \"ISO-8859-1\" COLLATE \"ISO-8859-1$en_US$primary\", '!PUBLIC!')])\n"); + + " CassandraFilter(condition=[=($0, '!PUBLIC!')])\n"); } @Test public void testProject() { @@ -109,7 +109,7 @@ protected boolean enabled() { .explainContains("PLAN=CassandraToEnumerableConverter\n" + " CassandraLimit(fetch=[2])\n" + " CassandraProject(tweet_id=[$2])\n" - + " CassandraFilter(condition=[=(CAST($0):VARCHAR(8) CHARACTER SET \"ISO-8859-1\" COLLATE \"ISO-8859-1$en_US$primary\", '!PUBLIC!')])\n"); + + " CassandraFilter(condition=[=($0, '!PUBLIC!')])\n"); } @Test public void testProjectAlias() {