Skip to content

CompatibilityResult

Source code in docs_src/capo_athena/types/compatibility_result.py
class CompatibilityResult(TypedDict, closed=True):
    id: NotRequired["capo_athena.types.compatibility_id.CompatibilityId"]
    """<p>The unique ID of the translation.</p>"""
    target_query: NotRequired["capo_athena.types.query_string.QueryString"]
    """<p>The translated query string for DuckDB.</p>"""
    status: NotRequired["capo_athena.types.compatibility_status.CompatibilityStatus"]
    """<p>The status of the translation, and of the validation if one was run. Valid values are <code>SUCCEEDED</code> and <code>FAILED</code>.</p>"""
    confidence: NotRequired[
        "capo_athena.types.compatibility_confidence.CompatibilityConfidence"
    ]
    """<p>The confidence that the translated query is equivalent to the original query. Valid values are <code>NO_TRANSLATION_NEEDED</code>, <code>TRANSLATED_TO_TARGET_DIALECT</code>, and <code>TRANSLATION_NEEDS_HUMAN_REVIEW</code>.</p>"""
    source_query_execution_id: NotRequired[
        "capo_athena.types.query_execution_id.QueryExecutionId"
    ]
    """<p>The ID of a previous query execution whose translation result was reused for this query, if any.</p>"""
    target_query_execution_id: NotRequired[
        "capo_athena.types.query_execution_id.QueryExecutionId"
    ]
    """<p>The ID of the query execution that ran the translated query on DuckDB for validation.</p>"""
    target_query_execution_attempts: NotRequired[
        "capo_athena.types.target_query_attempts_list.TargetQueryAttemptsList"
    ]
    """<p>The IDs of all query executions that were attempted to validate the translated query on DuckDB. Present only when the translated query was validated.</p>"""
    result_summary: NotRequired[
        "capo_athena.types.compatibility_summary_string.CompatibilitySummaryString"
    ]
    """<p>A JSON-formatted summary of the validation, including execution and data validation checks, the checks that passed and failed, and the execution times of the original and translated queries.</p>"""

confidence instance-attribute

confidence: NotRequired[CompatibilityConfidence]

The confidence that the translated query is equivalent to the original query. Valid values are NO_TRANSLATION_NEEDED, TRANSLATED_TO_TARGET_DIALECT, and TRANSLATION_NEEDS_HUMAN_REVIEW.

id instance-attribute

id: NotRequired[CompatibilityId]

The unique ID of the translation.

result_summary instance-attribute

result_summary: NotRequired[CompatibilitySummaryString]

A JSON-formatted summary of the validation, including execution and data validation checks, the checks that passed and failed, and the execution times of the original and translated queries.

source_query_execution_id instance-attribute

source_query_execution_id: NotRequired[QueryExecutionId]

The ID of a previous query execution whose translation result was reused for this query, if any.

status instance-attribute

status: NotRequired[CompatibilityStatus]

The status of the translation, and of the validation if one was run. Valid values are SUCCEEDED and FAILED.

target_query instance-attribute

target_query: NotRequired[QueryString]

The translated query string for DuckDB.

target_query_execution_attempts instance-attribute

target_query_execution_attempts: NotRequired[TargetQueryAttemptsList]

The IDs of all query executions that were attempted to validate the translated query on DuckDB. Present only when the translated query was validated.

target_query_execution_id instance-attribute

target_query_execution_id: NotRequired[QueryExecutionId]

The ID of the query execution that ran the translated query on DuckDB for validation.