cayley
cayley copied to clipboard
Virtual predicates
Use #668 to store queries in database. Next, allow to register virtual predicates that refer these queries. Shapes optimizer will run a rewrite pass to detect predicates that are registered as virtual and will add a specified subquery to the tree. Will require #667 to be implemented.
We can take notes from Postgres: https://pgdash.io/blog/postgres-12-generated-columns.html