View a markdown version of this page

Preparing data tables in Amazon Athena - AWS Clean Rooms

Preparing data tables in Amazon Athena

You can query data tables that have been created as AWS Glue Data Catalog (GDC) Views in Amazon Athena.

A GDC View is a virtual table, created from one or more underlying AWS Glue tables. It must be created using Athena SQL in the Athena AwsGlueCatalog catalog.

Note

Complex (nested) data types—ARRAY, MAP, and STRUCT—are not supported for Amazon Athena data sources in AWS Clean Rooms. If an underlying AWS Glue table or GDC View contains a column of a complex data type, queries fail during table setup. This occurs even when the query doesn't reference that column. To work around this limitation, create a GDC View that excludes the complex-typed columns, or cast them to a supported type such as STRING.

Preparing your data tables in Amazon Athena involves the following steps:

Step 1: Complete the prerequisites

To prepare your data tables for use with AWS Clean Rooms, you must complete the following prerequisites:

Step 2: Next steps

Now that you have prepared your data tables in Amazon Athena, you are ready to:

The tables can be queried after:

  • The collaboration creator has set up a collaboration in AWS Clean Rooms. For more information, see Creating a collaboration.

  • The collaboration creator has sent the collaboration ID to you as a participant in the collaboration.