Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
schemadiff: validate views' referenced columns via semantics (#12565)
* validate table columns referenced by views Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * validate views' columns Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * support star expression Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * removed 'TODO' Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * rename: errs Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * use mutierr Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * excessive test, removed Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * go mod tidy Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * update to latest mutierr Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * avoid setting entity columns in case of error Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * grammar Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * schemadiff: fix scenario where no tables exist in schema and with just views reading from DUAL Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * dual, not dual2 Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * stripped irrelevant comments Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * using AllErrorRecorder instead of multierr package Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * multierr update Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * using FakeSI as table-column model Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * rename variable Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * clone Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * add InvalidStarExprInViewError Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * Make 'args()' accessible Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * using 'go/vt/vtgate/semantics' to analyze view queries. Handling star expression in DUAL Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * more test cases Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * typo Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * unexpected error Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * use ColumnName() Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * iterate columns instead of Walk Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * simplify InvalidColumnReferencedInViewError Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * do not use FakeSI, create my own implementation of semantics.SchemaInformation Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * Refactor: go/vt/vtgate/engine/opcode to reduce semantics package dependencies Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * add new package Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * copyright Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * fix function comment Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * empty commit to kick CI Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> --------- Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
- Loading branch information