Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant