catalog_ai_lake.

get_operation

get_operation(operation_id: str) -> CatalogAILakeOperation

Fetch the current state of a long-running AI Lake operation.

Parameters

nametypedescription
operation_id: strstr

Returns

typedescription
CatalogAILakeOperation

Example

operation_id = sdk.catalog_ai_lake.analyze_statistics(instance_id="warehouse-prod")
op = sdk.catalog_ai_lake.get_operation(operation_id)
if op.is_terminal:
    print(op.status, op.result or op.error)