Skip to content

build(ingest): allow smart-open up to 10.x - #21636

Open
itzzdev09 wants to merge 1 commit into
datahub-project:masterfrom
itzzdev09:allow-smart-open-10
Open

itzzdev09 wants to merge 1 commit into
datahub-project:masterfrom
itzzdev09:allow-smart-open-10

Conversation

@itzzdev09

@itzzdev09 itzzdev09 commented Nov 26, 2026 •

Copy link
Copy Markdown

metadata-ingestion caps smart-open at <8.0.0 (s3, abs, gcs, csv-enricher, sql-queries and the slim variants). smart-open 8.0.0 (2026-06), 9.0.0 (2026-10-28) and 10.0.0 (2026-11-20) are all out, so acryl-datahub[s3] and similar extras can't be installed next to anything that needs a newer smart-open.

This raises the cap to <11.0.0:

  • setup.py: the six smart-open specifiers.
  • pyproject.toml: regenerated with scripts/generate_pyproject_deps.py. verify_pyproject_equivalence.py reports 163/163 checks passed.
  • uv.lock: uv lock --upgrade-package smart-open moves only smart-open, from 7.5.1 to 10.0.0, plus the specifier strings. uv lock --check passes.
  • constraints.txt: re-exported with the uv export command in its header. The only change is smart-open==10.0.0. scripts/check_wheel_coverage.py passes.

DataHub uses smart_open.open(uri, mode, transport_params=...) and the .gzip alias through smart_open.compression.register_compressor(".gzip", _COMPRESSOR_REGISTRY[".gz"]). Both behave the same in 10.0.0. The breaking changes in 8.0 to 10.0 are removed deprecated helpers (smart_open.smart_open(), tweak_close, the GCS buffer_size/line_terminator params, concurrency.create_pool) and stricter SSH host-key defaults. DataHub doesn't use any of them.

Checked in python:3.11 with uv pip install -e ".[s3,abs,gcs,csv-enricher,sql-queries]" --constraint constraints.txt plus the dev test requirements. I took the generated datahub.metadata package from the 1.9.0.1 wheel, because codegen needs the Gradle build. I ran pytest tests/unit/test_file_systems.py tests/unit/test_csv_enricher_source.py tests/unit/s3 tests/unit/abs tests/unit/gcs tests/unit/test_gcs_source.py tests/unit/data_lake_common tests/unit/sql_queries:

  • smart-open 7.5.1: 487 passed, 2 xfailed
  • smart-open 10.0.0: 487 passed, 2 xfailed

Summary by cubic

Raises the smart-open dependency cap from <8.0.0 to <11.0.0 so that acryl-datahub[s3] and similar extras can be installed alongside packages that require a newer smart-open.

  • Updates all six smart-open specifiers in setup.py, regenerates pyproject.toml and uv.lock, and re-exports constraints.txt with smart-open 10.0.0.
  • DataHub's use of smart_open.open() and the .gzip alias is unaffected; the breaking changes in 8.0–10.0 only remove deprecated helpers DataHub doesn't use.
  • Verified with pytest across the s3, abs, gcs, csv-enricher, and sql-queries suites: 487 passed, 2 xfailed on both 7.5.1 and 10.0.0.

Written for commit 117fe34. Summary will update on new commits.

View guided diff

Raise the smart-open cap from <8.0.0 to <11.0.0 in setup.py, regenerate pyproject.toml, and lock smart-open 10.0.0 (uv lock --upgrade-package smart-open; constraints.txt re-exported).
@github-actions github-actions Bot added ingestion PR or Issue related to the ingestion of metadata community-contribution PR or Issue raised by member(s) of DataHub Community labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Linear: ING-4341

Thanks for your contribution! We have created an internal ticket to track this PR. A member of the core DataHub team will be assigned to review it within the next few business days - you will get a follow-up comment once a reviewer is assigned.

@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Bundle Report

Bundle size has no change ✅

This branch was successfully deployed

1 active deployment
Preview — 117fe342 Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution PR or Issue raised by member(s) of DataHub Community ingestion PR or Issue related to the ingestion of metadata

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant