

# Assess a workgroup for DuckDB compatibility

You can run a one-time assessment to see how compatible a workgroup's queries are with DuckDB, before you change anything. The assessment reads the workgroup's recent queries, assesses whether each one can run on DuckDB, and gives each one a status. The migration agent sets the status **from the query text alone, without running the query, which might produce false negatives and false positives.**
+ **No translation needed** (`NO_TRANSLATION_NEEDED`) – The query runs on DuckDB without changes. Validate it before you move it.
+ **Translated** (`TRANSLATED_TO_TARGET_DIALECT`) – The migration agent rewrote the query in DuckDB's SQL dialect. Read the change summary, and then validate the translated query.
+ **Not translated** – The migration agent couldn't translate the query. In the query editor, the query shows the status **Failed**. Rewrite the query yourself.

The assessment doesn't run or change your queries, and writes its report to the workgroup's Amazon S3 query results location.

## In the console
<a name="athena-duckdb-migration-agent-assess-console"></a>

**To run a one-time assessment**

1. Open the Athena console at [https://console.aws.amazon.com/athena/](https://console.aws.amazon.com/athena/home).

1. In the navigation pane, under **Administration**, choose **Workgroups**.

1. Choose the engine version 3 workgroup that you want to assess.

1. Choose the **Migration agent report** tab, and then choose **One-time assessment**. The **Download report JSON** and **One-time assessment** buttons are at the top right of the report details section.  
![The Migration agent report tab on the workgroup details page, with the One-time assessment button at the top right.](https://docs.aws.amazon.com/athena/latest/ug/images/athena-duckdb-migration-agent-shot-3.png)

1. For **Number of recent queries**, enter a number from 1 to 50,000. The default is 50,000.

1. Choose **Run one-time assessment**.

While the assessment runs, the workgroup details page shows its progress. When it finishes, the report appears on the **Migration agent report** tab.

### Read the assessment report
<a name="athena-duckdb-migration-agent-assess-report"></a>

**Compatibility** represents the percentage of the workgroup's queries that can run on DuckDB, either without changes or after the migration agent translates them. The report also shows how many queries are **No translation needed**, **Translated**, or **Not translated**. Queries that are **Not translated** need your changes. **Top query patterns** list the most common changes, with the number of queries affected, and cover translated queries only.

To download the report, choose **Download report JSON**.

![The Migration agent report, with Compatibility, queries evaluated, the translation status chart, and Top query patterns.](https://docs.aws.amazon.com/athena/latest/ug/images/athena-duckdb-migration-agent-shot-4.png)


## Considerations and limitations
<a name="athena-duckdb-migration-agent-assess-considerations"></a>
+ The workgroup must use Athena engine version 3. You don't need to update the migration agent setting on the workgroup to run assessment.
+ A workgroup can have one assessment. If you start another one, the request fails and names the existing assessment.
+ The migration agent can't assess a workgroup that uses AWS IAM Identity Center for authentication.
+ To run an assessment in the console, the workgroup's query result location must be an Amazon S3 bucket, not Athena managed query results. This requirement applies only to assessment.
+ The migration agent uses only the query text to assess and translate queries, which might produce false negatives and false positives.
+ With assessment and translation, you can plan your migration quickly.
+ For more information about validation, see [Validate queries](duckdb-migration-agent-validate.md). Validation runs your query on both engines and compares the row count, column names, and data types of the results. You can also run your own tests.