> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Classify a table in a Trino catalog

> Use AI to label a table's data sensitivity, suggest glossary terms, and recommend tags, then accept the results.

In a Trino catalog, you can use AI to classify a table. The AI reviews the table and its columns, and then suggests a
description, tags that label how sensitive the data is, and business glossary terms. When you accept the result, NexusOne
saves the tags in DataHub with a `classification:` prefix.

## Prerequisites

Before starting this task, ensure you have the following:

* Required roles: `nx1_engineer`, `nx1_steward`, or `nx1_admin`.
* An existing table in a Trino catalog schema.

## Classify a table in a Trino catalog

> [tab] Web portal
>
> Perform these steps to classify a table in a Trino catalog.
>
> 1. Log in to NexusOne.
>
> 2. On the top navigation bar, hover your mouse over **Catalog & Models** and then select **Catalogs**.
>
> 3. Click a catalog to view its schemas.
>
> 4. Click a schema to view its tables.
>
> 5. Click a table.
>
> 6. In the **Data Classification** card, click **Classify Table**. If the table already has classification tags, then
>    the button says **Re-classify**.
>
> 7. Wait while NexusOne classifies the table. The card shows progress messages.
>
> 8. Review the result:
>
>    * **Table Classification**: Review the table description, the sensitivity, the tags, and the glossary terms.
>      Clear the checkbox next to any tag or term you don't want. You can also edit the description.
>    * **Column Classifications**: Review the tags and glossary terms for each column. Clear the checkbox next to
>      any you don't want.
>
> 9. Click **Accept & Apply**. To discard the result, click **Reject** instead.
>
> After you accept, a message shows how many tags, columns, and glossary terms NexusOne applied.

> [tab] REST API
>
> Use the following API endpoints to:
>
> 1. [Trigger data classification for a table](https://docs.nx1cloud.com/api-reference/endpoints/metastore/trigger-data-classification-for-a-table.md).
> 2. [Get the classification result](https://docs.nx1cloud.com/api-reference/endpoints/metastore/get-classification-result.md).
> 3. [Accept and persist the classification](https://docs.nx1cloud.com/api-reference/endpoints/metastore/accept-and-persist-classification.md).

## Additional resources

* For more information about tables in a Trino catalog, refer to
  [Edit a table in a Trino catalog](https://docs.nx1cloud.com/documentation/catalog-and-models/tasks/catalogs/edit-a-table-in-a-trino-catalog.md).
* To use the classification tags to propose Ranger policies, refer to
  [Suggest policies](https://docs.nx1cloud.com/documentation/govern/tasks/data-access/ranger-policy/suggest-policies.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.