From 018d1647480d5f838fd0963b15f53f11d91b33e8 Mon Sep 17 00:00:00 2001 From: Nathan Date: Mon, 20 Nov 2023 11:34:52 +0100 Subject: [PATCH] [hotfix] Updated CQL_PROHIBITED_CLAUSES_REGEXP to match the "ORDER BY" keyword instead of just "ORDER" --- .../flink/connector/cassandra/source/CassandraSource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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+).*;$");