AlejandroMorgante opened a new pull request, #77477:
URL: https://github.com/apache/airflow/pull/77477

   Adds `DatabricksDataQualityRefreshOperator` to refresh the metrics of an 
existing data profiling monitor after its source table is updated. The operator 
accepts a three-level Unity Catalog table name, resolves its ID, submits a 
refresh and waits for that specific `refresh_id` by default. Set 
`wait_for_completion=False` to return after submission. Both modes return the 
refresh ID through XCom.
   
   Uses the current [Data Quality Monitoring 
API](https://docs.databricks.com/api/data-quality/v1/create-refresh) and the 
provider's existing authentication and HTTP transport, without adding 
dependencies. The API is in Public Preview and currently supports refresh 
creation for table monitors. The monitor must already exist in the workspace 
used by the connection.
   
   Waiting has a configurable polling interval and timeout. Failed, canceled, 
unknown and mismatched refresh responses fail the task. The timeout bounds 
status requests, retries and sleeps; it does not cancel the remote refresh. 
HTTP attempts default to one because replaying an ambiguous submission can 
create another refresh. Refreshing an inference-table monitor processes data 
already present in the table and does not force pending inference logs to 
arrive.
   
   ### Validation
   
   - 46 focused hook/operator tests passed in Breeze (Python 3.11), including 
submission, templating, identity checks, terminal states, deadline boundaries, 
cancellation and session cleanup.
   - Ruff, regular pre-commit checks and manual checks passed.
   - Focused Breeze mypy passed for the three changed production files; the 
manual provider mypy check passed.
   - `breeze build-docs databricks` passed. Provider metadata was regenerated 
through Breeze.
   - The wider related-provider/core matrix selected by `breeze verify` is left 
to CI.
   - The real Databricks system test has not been run. The example and its 
README describe the existing-monitor prerequisites and cleanup.
   
   Reproduce the focused tests from the checkout:
   
   ```bash
   MOUNT_SOURCES=all breeze run pytest \
     providers/databricks/tests/unit/databricks/hooks/test_data_quality.py \
     providers/databricks/tests/unit/databricks/operators/test_data_quality.py \
     --skip-db-tests -q
   ```
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Codex (GPT-6)
   
   Generated-by: Codex (GPT-6) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to