- Newest
- Most votes
- Most comments
The current workaround is to register a new Athena Catalog (type = GLUE) that explictly references your S3Tables Table Bucket. It is detailed in part here - https://docs.aws.amazon.com/athena/latest/ug/gdc-register-s3-table-bucket-cat.html#gdc-register-s3-table-console-steps
I have written about this issue in more detail here - https://www.tind.au/blog/access-s3tables-with-grafana-and-athena/
answered a year ago
The issue you're experiencing with S3Tables catalogs not appearing in the list-data-catalogs API call is related to how S3 Tables integrate with AWS analytics services.
When you use the aws athena list-data-catalogs command, it only returns the data catalogs that are directly registered with Athena in your current AWS account. These typically include the default AWS Glue Data Catalog (shown as "AwsDataCatalog") and any Lambda-based federated catalogs you might have set up.
S3 Tables use a separate catalog system that integrates with AWS Lake Formation for access control. The S3 Tables catalogs follow a specific naming convention (s3tablescatalog/bucket-name), and while they're accessible through Athena, they aren't returned by the standard list-data-catalogs API call.
This explains why you can successfully query the S3 Tables catalog when you explicitly provide the catalog name in commands like list-databases and list-table-metadata, but the catalog itself doesn't appear in the list of catalogs.
The AWS Athena console is likely using additional internal mechanisms to display S3 Tables catalogs that aren't exposed through the public API. This creates a discrepancy between what you see in the console versus what's returned by the API calls.
For tools like the Grafana athena-datasource plugin that rely on the list-data-catalogs API, this presents a limitation when working with S3 Tables. You would need to either modify the plugin to explicitly include your known S3 Tables catalogs or request an enhancement to the Athena API to include S3 Tables catalogs in the response.
Sources
Athena examples using AWS CLI - AWS SDK Code Examples
S3 Tables - Unable to query using Athena | AWS re:Post
list-data-catalogs — AWS CLI 2.27.41 Command Reference
answered a year ago
Relevant content
asked 9 months ago
asked a year ago
asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
