Skip to content

[DCV-4240] [6.1] Airflow DB sync docs: Airflow 3 tables, 6.1 requirement and parameter fixes - #93

Open
gams87 wants to merge 1 commit into
mainfrom
DCV-4240-airflow-db-sync-docs
Open

gams87 wants to merge 1 commit into
mainfrom
DCV-4240-airflow-db-sync-docs

Conversation

@gams87

@gams87 gams87 commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Docs for the Airflow DB sync task (@task.datacoves_airflow_db_sync and the DatacovesDataSyncOperator* operators), updated for 6.1, where it works on both Airflow 2 and Airflow 3 (DCV-4240, DCV-4243).

Merge after datacoves/datacoves#1805 and the dbt-coves release with datacoves/dbt-coves#692 are in 6.1: the 6.1 note and the Airflow 3 section describe that behaviour.

Changes

Sync Airflow database (how-tos/airflow/sync-database.mdx)

  • Title and description said it syncs the internal database to "apply configuration changes, reset state, or recover from database inconsistencies". It loads the Airflow metadata into the warehouse; reworded.
  • Note: requires Datacoves 6.1 on both Airflow 2 and Airflow 3; in 6.0 it fails on both. Airflow 3 workers have no metadata DB access, and the 6.0 Airflow 2 images have SQLAlchemy 2.1.8 without psycopg 3, so the sync fails with No module named 'psycopg'.
  • New "Tables" section:
    • Airflow 2: the existing list and incremental columns.
    • Airflow 3: read through the REST API. Lists the 8 tables loaded; dag_tag, task_fail and extra tables are skipped. Columns come from the API, with database names kept for renamed ones, and nested values are stored as JSON. The first sync after an Airflow 2 -> 3 upgrade replaces the old tables.

Decorators and operators reference

  • tables doesn't replace the default tables, and [] doesn't sync the whole database: dbt-coves always loads the defaults and adds the tables passed. Documented as the same as additional_tables.
  • The default schema is airflow_<slug> (dlt turns the hyphen into an underscore), not airflow-<slug>.
  • Operator:
    • documents connection_id;
    • the default service connection is load_airflow, not airflow_db_load;
    • drops "Snowflake is the only one supported", since Redshift is supported too;
    • the example uses schedule (schedule_interval was removed in Airflow 3) and a real start_date.

Testing

  • npm run build passes with no broken links or anchors. Checked the rendered pages locally.
  • Facts checked against:
    • the code (operators/datacoves/data_sync.py, the decorator, and dbt-coves data_sync/base.py);
    • the latest 6.0 Airflow 2 image (6.0.202611052110);
    • dlt's schema name normalization.

🤖 Generated with Claude Code

https://claude.ai/code/session_015pcV34MZdbJ74vpRWVtwH3

…ent and parameter fixes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015pcV34MZdbJ74vpRWVtwH3

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants