Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Code Clarity
-
Normal
-
All
-
None
-
Description
The Relation and Restriction hierarchy have been designed when C* was only supporting a limited amount of operators and columns expressions (single column, multi-column and token expressions). Over time they have grown in complexity making the code harder to understand and modify and error prone. Their design is also resulting in unnecessary limitations that could be easily lifted, like the ability to accept different predicates on the same column.
Today adding a new operator requires the addition of a lot of glue code and surgical changes accross the CQL layer. Making patch for features such as CASSANDRA-18584 much complex than it should be.
The goal of this ticket is to simplify the Relation and Restriction hierarchies and modify operator class so that adding new operators requires only changes to the Operator class and ANTLR file.
Attachments
Issue Links
- blocks
-
CASSANDRA-18584 CEP-29: NOT operator
- Review In Progress
- relates to
-
CASSANDRA-19620 Refactor ColumnCondition post CASSANDRA-19341
- Patch Available
- links to