Fixes #26299 make compressed dag ingestion available#27984
Fixes #26299 make compressed dag ingestion available#27984varun-lakhyani wants to merge 3 commits intoopen-metadata:mainfrom
Conversation
Code Review ✅ Approved 2 resolved / 2 findingsEnables support for compressed DAG ingestion by implementing zlib decompression in Airflow source, resolving the N+1 query issue and potential decompression failures for non-zlib data. ✅ 2 resolved✅ Performance: N+1 query: extra DB round-trip per compressed DAG
✅ Edge Case: zlib.decompress may raise on non-zlib data (e.g. zstd)
OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|
🟡 Playwright Results — all passed (17 flaky)✅ 3981 passed · ❌ 0 failed · 🟡 17 flaky · ⏭️ 86 skipped
🟡 17 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |



Describe your changes:
Fixes #26299
Issue seems to be that dags are compressed and it was not supported, If this the the case They will be ingested now
Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Unit tests
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
UI screen recording / screenshots:
Not applicable.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.Summary by Gitar
Airflow 3.xtest case with a more generictest_compressed_dag_falls_back_to_dag_id_queryto validate fallback logic whendataisNULL.test_airflow2_returns_tasks_when_data_is_validandtest_airflow2_returns_none_when_table_emptyby removing unnecessaryIS_AIRFLOW_3mock patches.This will update automatically on new commits.