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
To run a one-time assessment
Open the Athena console at https://console.aws.amazon.com/athena/
. -
In the navigation pane, under Administration, choose Workgroups.
-
Choose the engine version 3 workgroup that you want to assess.
-
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.
-
For Number of recent queries, enter a number from 1 to 50,000. The default is 50,000.
-
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
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.
Considerations and limitations
-
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. 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.