Skip to content

Conversation

@Yuqi-Du
Copy link
Contributor

@Yuqi-Du Yuqi-Du commented Oct 16, 2024

Now OperationBuilder needs to pass StatementType to construct WhereCQLClauseAnalyzer, and regarding to different StatementType, there will be analyzerStrategy with different validation rules and warnings rules to check.
StatementTypes:

  • Update -> full primary key must be specified.
  • DeleteOne -> full primary key must be specified.
  • DeleteMany -> partial primary key is supported, but still need to be a valid primary key filtering.
  • Read - what we have right now for find path.

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@Yuqi-Du Yuqi-Du requested a review from a team as a code owner October 16, 2024 19:39
improve code layout and error messages
remove debugging code left in
refactor tests to remove code duplication

Will create an issue to further remove code dup for the
where analyzer tests
@amorton
Copy link
Contributor

amorton commented Oct 16, 2024

approved by making some changes, waiting for @Yuqi-Du to review and merge

@Yuqi-Du Yuqi-Du merged commit b71ea13 into main Oct 17, 2024
@Yuqi-Du Yuqi-Du deleted the yuqi/update-delete-analyzer branch October 17, 2024 00:13
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