Details
-
New Feature
-
Status: In Progress
-
Minor
-
Resolution: Unresolved
-
1.16.0
-
None
Description
I've looked into the core and the notion of an user could be hard to achieved now.
Though, I am able to implement the "hidden schema" feature through following changes:
- JsonSchema - add a holder for the feature, boolean flag or flags field with enum (CACHED which now exists as a separate flag - some deprecation could be needed, HIDDEN)
- CalciteSchema - pass through of a flag
- RelOptSchema - pass through of a flag
- CalciteCatalogReader - pass through of a flag
- Other derivatives of RelOptSchema - mocked value, false
- RelOptTable and impl - pass through of a flag
- SqlValidatorImpl - validation whether object from hidden schema is used (in the same places like validateAccess)
- ViewTableMacro.apply
> Schemas.analyzeView -> CalcitePrepareImpl.analyzeView -> CalcitePrepareImpl.parse_ -> CalcitePrepareImpl.CalcitePrepareImpl - this path of execution should build SqlValidatorImpl which has the check from point 7 disabled
Such feature could be useful for end users.
If the solution is ok - I can contribute it.
Attachments
Issue Links
- relates to
-
CALCITE-5681 Support authorization via GRANT and REVOKE DDL commands
- In Progress
- links to