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

no such table: #17

Open
superdba111 opened this issue Oct 25, 2020 · 12 comments
Open

no such table: #17

superdba111 opened this issue Oct 25, 2020 · 12 comments
Assignees

Comments

@superdba111
Copy link

\r:iamdb> SELECT * FROM database_privileges;
no such table: database_privileges
\r:iamdb> SELECT * FROM table_privileges;
no such table: table_privileges
\r:iamdb>

@vrajat
Copy link
Member

vrajat commented Oct 25, 2020

Hi
Thanks for trying out lakecli. Lakecli writes logs to ~/.lakecli/app.log . Can you check if there are any errors in the log?

@superdba111
Copy link
Author

superdba111 commented Oct 25, 2020 via email

@superdba111
Copy link
Author

superdba111 commented Oct 25, 2020 via email

@vrajat
Copy link
Member

vrajat commented Oct 26, 2020

Can you run with --scan ? This is required the first time to create and load the tables.

@superdba111
Copy link
Author

superdba111 commented Oct 26, 2020 via email

@vrajat
Copy link
Member

vrajat commented Oct 26, 2020

Can you paste the logs for the run with --scan ?

@superdba111
Copy link
Author

superdba111 commented Oct 26, 2020 via email

@superdba111
Copy link
Author

superdba111 commented Oct 26, 2020 via email

@vrajat
Copy link
Member

vrajat commented Oct 27, 2020

Great! Looks like progress. It is partially working ? Did you have to exit and restart the application ?

As per logs, it did not find any table permissions but found database level permissions.

2020-10-26 12:59:11,716 (63536/MainThread) lakecli.iam.scanner INFO - 0
table permissions found.
2020-10-26 12:59:11,716 (63536/MainThread) lakecli.iam.scanner INFO - 1
database permissions found.

Is this unexpected? Can you please check and confirm if any table level permissions are set in LakeFormation UI?

Reference: https://docs.aws.amazon.com/lake-formation/latest/dg/granting-table-permissions.html

@superdba111
Copy link
Author

superdba111 commented Oct 27, 2020 via email

@superdba111
Copy link
Author

superdba111 commented Oct 27, 2020 via email

@vrajat vrajat self-assigned this Oct 27, 2020
@vrajat
Copy link
Member

vrajat commented Oct 27, 2020

table_privileges and database_privileges only store the permissions. table_privileges is empty because no table permissions are set. If you set a permission using grant table ... or revoke table ..., then you will see entries.

Looks like you want to also list databases and tables in glue catalog using SQL? Like 'select * from tables?' ?
This is a valid feature request and I can look into it. Can I send you an email to better understand your use case? When I take up a new feature request I want to make sure, I understand the requirements correctly.

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

2 participants