Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manager.py should be able to rewrite queries to show desired repo #178

Open
RogerTangos opened this issue Aug 8, 2016 · 0 comments
Open

Comments

@RogerTangos
Copy link
Contributor

Currently, a user posting to /api/v1/query/{repo_base}/{repo_name}/ must also specify the repo_name in their query string. For example,

select * from repo_name.table rather than select * from repo.table

This is a limitation row level security. The trouble is that the RLS SQL parser has no way of knowing what schemas your query will be executed on unless it's specified with a period.

To fix this, we'd probably need to put a query parser and rewriter into the datahub manager.

It is useful to developers though, since it keeps their code portable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant