Skip to content

Commit

Permalink
[hotfix] Updated CQL_PROHIBITED_CLAUSES_REGEXP to match the "ORDER BY…
Browse files Browse the repository at this point in the history
…" keyword instead of just "ORDER"
  • Loading branch information
EnneS authored and echauchot committed Nov 21, 2023
1 parent b95690f commit 20c5f50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public class CassandraSource<OUT>
implements Source<OUT, CassandraSplit, CassandraEnumeratorState>, ResultTypeQueryable<OUT> {

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+).*;$");

Expand Down

0 comments on commit 20c5f50

Please sign in to comment.