[SERVER-25506] Refactor ViewCatalog validation checks into a ViewValidator class Created: 09/Aug/16  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Kyle Suarez Assignee: Backlog - Query Optimization
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
Participants:

 Description   

Currently, the ViewCatalog has some duplicated code for validating views in the insert and modification paths. It also is lacking in other validation checks, including

  • parsing the view pipeline
  • verifying that the size of the view definition is < 16 MB

We should make a ViewValidator class that abstracts out this common code and implements these additional checks.

In addition, this validator should be in its own library in the views directory. This would allow us to move the ViewGraph cycle detection there and remove a dependency on aggregation in the core views library.


Generated at Thu Feb 08 04:09:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.