

# Use Amazon SageMaker AI system tables

AWS Glue creates system tables for Amazon SageMaker AI assets. These tables contain an inventory of registered AI assets. You can also query system tables in Amazon SageMaker AI Studio.

## Tables
<a name="catalog-assets-system-tables-tables"></a>

Amazon SageMaker AI has the following system tables:
+ `models`
+ `model_versions`
+ `deployable_models`
+ `data_sets`
+ `data_set_versions`
+ `evaluators`
+ `evaluator_versions`
+ `feature_groups`

## Where the data is stored
<a name="catalog-assets-system-tables-storage"></a>

Amazon SageMaker AI stores system tables in the table bucket `aws-catalog`, namespace `sagemakerai`.

To query a table, use its full name, as in the following example:

```sql
SELECT * FROM "s3tablescatalog/aws-catalog"."sagemakerai"."model_versions" LIMIT 10;
```

For the permissions that you need, see [Permissions for querying system tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-aws-managed-buckets.html) in the *Amazon S3 User Guide*.

## Enable system tables
<a name="catalog-assets-system-tables-enable"></a>

To make these tables available, turn on AWS Glue Data Catalog metadata export for your account. For the steps, see [Export metadata to S3 Tables](https://docs.aws.amazon.com/glue/latest/dg/catalog-export-s3-tables.html) in the *AWS Glue Developer Guide*.

## Schema and example queries
<a name="catalog-assets-system-tables-schema"></a>

For what each table records, its columns, and example queries, see [AWS managed table buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-aws-managed-buckets.html) in the *Amazon S3 User Guide*.