I need to expose for users an SQL like engine on top of specific jdbc datasource. Each user should only see a specific filtered data from this jdbc datasource.
So when a specific user runs his SQL against datasource, like:
select * from table where column = value
the engine should perform rather enhanced query:
select * from (select * from table where user = specific_user) where column = value
I have started messing around Calcite - how can achieve such logic with it? Should I add a custom view on top of JDBCSchema or try to build some new schema delegating to JDBCSchema?