Skip to content

More CqlSession Replacements - #1629

Merged
arcuri82 merged 6 commits into
feature/cql-heuristics-calculatorfrom
feature/cql-session-replacement-v2
Jul 10, 2026
Merged

More CqlSession Replacements#1629
arcuri82 merged 6 commits into
feature/cql-heuristics-calculatorfrom
feature/cql-session-replacement-v2

Conversation

@gonzalotguerrero

Copy link
Copy Markdown
Collaborator
  • Added 3 more replacement methods to cover the following variants of overloaded 'execute' method
    • execute(Statement<?> statement)
    • execute(String query, Object... values)
    • execute(String query, Map<String, Object> values)

*/
private static final Pattern TABLE_REFERENCE_PATTERN = Pattern.compile(
"(?i)\\b(?:FROM|INTO|UPDATE)\\s+(\"[^\"]+\"|[A-Za-z_]\\w*)(?:\\s*\\.\\s*(\"[^\"]+\"|[A-Za-z_]\\w*))?"
);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid difficult to understand patterns. Split the regex into named pieces to improve readability.

@jgaleotti
jgaleotti requested a review from arcuri82 July 9, 2026 19:49
@arcuri82
arcuri82 merged commit 432b4c7 into feature/cql-heuristics-calculator Jul 10, 2026
31 checks passed
@arcuri82
arcuri82 deleted the feature/cql-session-replacement-v2 branch July 10, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants