diff --git a/flink-connector-cassandra/src/main/java/org/apache/flink/connector/cassandra/source/CassandraSource.java b/flink-connector-cassandra/src/main/java/org/apache/flink/connector/cassandra/source/CassandraSource.java index 6ac90d0a..b9b6d0ff 100644 --- a/flink-connector-cassandra/src/main/java/org/apache/flink/connector/cassandra/source/CassandraSource.java +++ b/flink-connector-cassandra/src/main/java/org/apache/flink/connector/cassandra/source/CassandraSource.java @@ -90,7 +90,7 @@ public class CassandraSource implements Source, ResultTypeQueryable { public static final Pattern CQL_PROHIBITED_CLAUSES_REGEXP = - Pattern.compile("(?i).*(AVG|COUNT|MIN|MAX|SUM|ORDER|GROUP BY).*"); + Pattern.compile("(?i).*(AVG|COUNT|MIN|MAX|SUM|ORDER BY|GROUP BY).*"); public static final Pattern SELECT_REGEXP = Pattern.compile("(?i)select .+ from (\\w+)\\.(\\w+).*;$");