Reputation: 51
I have QuickSight set up in account_a in eu-west-1. I am attempting to query from Athena which is in account_b.
I have two databases [one is "default" and another one with another name] in Athena, both under the same AWS Glue catalog. The catalog shows up as a data source in QuickSight but none of the databases show up in QuickSight, like the following:
When I try to use the custom query functionality, it gives the following error:
[Simba][AthenaJDBC](100071) An error has been thrown from the AWS Athena client. SYNTAX_ERROR: line 2:34: Schema default does not exist [Execution ID: **-**-**-**-**]
The query I'm running is:
select * from default.tablename;
At this point I am really confused. What are some of the possible actions that I could take here?
Upvotes: 2
Views: 2377
Reputation: 486
I ran into a similar issue today. I am using Lake Formation to handle permissions of the Glue Catalog. If you are as well, you can follow this guide to get up and running: https://learnquicksight.workshop.aws/en/admin-level-up/data-lake-permissions.html
Essentially you grant the QuickSight ARN access to your source database/tables from within Lake Formation. Once granted, the database will appear inside QuickSight's Athena Datasets.
Lake Formation will also help with cross-account sharing of data resources in general. You enable Lake Formation on the source and target accounts and grant permissions as needed. This video is useful: https://www.youtube.com/watch?v=MJ9_hsCk52w
There are, as of May 2021, a few UI caveats with Lake Formation that I've ran into that are not directly related to this question but might help:
In source account, upon setting up Lake Formation in new account:
In target account:
Upvotes: 1