continuo-python-runtime 0.15.0__tar.gz → 0.16.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/CHANGELOG.md +97 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/CLAUDE.md +5 -3
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/PKG-INFO +70 -24
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/README.md +68 -22
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/README.md +37 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/application/ports.py +14 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/application/warehouse.py +53 -1
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/ddl.py +10 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/session.py +13 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/pyproject.toml +2 -2
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/conftest.py +10 -0
- continuo_python_runtime-0.16.0/adapters/duckdb/tests/test_adapter_duckdb_dependents.py +67 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_integration_duckdb_conformance.py +10 -0
- continuo_python_runtime-0.16.0/adapters/duckdb/tests/test_integration_duckdb_dependents.py +31 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_integration_duckdb_entrypoint.py +10 -7
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_integration_duckdb_warehouse_read.py +98 -16
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/pyproject.toml +2 -2
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/tests/test_integration_postgres_entrypoint.py +1 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/README.md +36 -21
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/continuo_trino_adapter/adapter.py +38 -95
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/pyproject.toml +2 -7
- continuo_python_runtime-0.16.0/adapters/trino/tests/test_adapter_trino_dependents.py +102 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/tests/test_integration_trino_conformance.py +18 -4
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/tests/test_integration_trino_entrypoint.py +10 -7
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/tests/test_integration_trino_warehouse_read.py +60 -10
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/validation/dependents_check.py +30 -39
- continuo_python_runtime-0.16.0/continuo_python_runtime/validation/drop_dependents.py +170 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/validation/runner.py +16 -10
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/validation/warehouse_read.py +29 -7
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/README.md +16 -10
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/continuo_engine_contract/port.py +80 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/continuo_engine_contract/testing/conformance.py +138 -10
- continuo_python_runtime-0.16.0/contract/continuo_engine_contract/views.py +179 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/pyproject.toml +1 -1
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/tests/test_conformance_suite.py +82 -12
- continuo_python_runtime-0.16.0/contract/tests/test_dependents_removal.py +102 -0
- continuo_python_runtime-0.16.0/contract/tests/test_views.py +239 -0
- continuo_python_runtime-0.16.0/image-requirements-duckdb.txt +3 -0
- continuo_python_runtime-0.16.0/image-requirements-postgres.txt +3 -0
- continuo_python_runtime-0.16.0/image-requirements-trino.txt +3 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/pyproject.toml +2 -2
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/template/Dockerfile +1 -1
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_validation_dependents_check.py +31 -11
- continuo_python_runtime-0.16.0/tests/test_validation_drop_dependents.py +175 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_validation_runner.py +15 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/warehouse_read_fakes.py +20 -10
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/uv.lock +5 -7
- continuo_python_runtime-0.15.0/adapters/trino/tests/test_adapter_trino_dependents.py +0 -224
- continuo_python_runtime-0.15.0/image-requirements-duckdb.txt +0 -3
- continuo_python_runtime-0.15.0/image-requirements-postgres.txt +0 -3
- continuo_python_runtime-0.15.0/image-requirements-trino.txt +0 -3
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.claude/agents/ddd-architecture-auditor.md +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.dockerignore +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/CODEOWNERS +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/dependabot.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/workflows/ci.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/workflows/dco.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/workflows/image-build.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/workflows/image-smoke.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/workflows/images.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/workflows/publish-pypi.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/workflows/release.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/workflows/security.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.github/workflows/verify-packages.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.gitignore +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.gitleaks.toml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/.python-version +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/CODE_OF_CONDUCT.md +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/CONTRIBUTING.md +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/DCO +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/Dockerfile.duckdb +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/Dockerfile.postgres +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/Dockerfile.trino +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/LICENSE +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/NOTICE +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/SECURITY.md +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/adapter.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/application/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/domain/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/domain/columns.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/domain/identifiers.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/domain/layout.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/extensions.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/passfile.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/settings.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_adapter_duckdb_proxy.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_adapter_duckdb_runtime.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_adapter_duckdb_validation.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_adapter_duckdb_wiring.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_domain_duckdb_columns.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_domain_duckdb_identifiers.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_domain_duckdb_layout.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_infra_duckdb_session.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_infra_duckdb_settings_ddl.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_integration_duckdb_layout.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_integration_duckdb_nullability_probe.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_integration_duckdb_runtime.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_integration_duckdb_stack.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/tests/test_integration_duckdb_validation.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/README.md +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/continuo_postgres_adapter/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/continuo_postgres_adapter/adapter.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/tests/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/tests/conftest.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/tests/test_adapter_postgres_connect.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/tests/test_adapter_postgres_validation.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/tests/test_adapter_runtime_postgres.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/tests/test_integration_postgres_conformance.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/tests/test_integration_postgres_dependents.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/tests/test_integration_postgres_validation.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/tests/test_integration_postgres_warehouse_read.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/postgres/tests/test_integration_runtime_postgres.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/continuo_trino_adapter/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/tests/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/tests/test_adapter_runtime_trino.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/tests/test_adapter_trino_connect.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/tests/test_adapter_trino_validation.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/tests/test_adapter_trino_writes.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/tests/test_integration_runtime_trino.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/tests/test_integration_trino_merge_probe.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/trino/tests/test_integration_trino_validation.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/conftest.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/cli.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/closure.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/conform.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/content_check.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/context.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/contract/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/contract/kinds.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/contract/loader.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/contract/model.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/contract/ontology_check.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/contract/pack.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/contract/paths.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/contract/read_tables.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/csv_loader.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/csv_readers/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/csv_readers/https.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/csv_readers/s3.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/csv_source.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/errors.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/harness.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/hash_inputs.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/hashing.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/lint.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/packages.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/shape.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/types.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/validation/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/validation/probe_views.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/continuo_python_runtime/validation/s3.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/LICENSE +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/NOTICE +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/continuo_engine_contract/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/continuo_engine_contract/config.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/continuo_engine_contract/keys.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/continuo_engine_contract/result.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/continuo_engine_contract/sql.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/continuo_engine_contract/testing/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/continuo_engine_contract/types.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/tests/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/tests/test_config.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/tests/test_contract_keys.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/tests/test_contract_packaging.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/tests/test_contract_types.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/tests/test_port.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/tests/test_result.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/tests/test_sql.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/contract/tests/test_startup_conformance.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/docs/boundary-contract.md +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/scripts/apply_rehearsal_version.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/scripts/bake_duckdb_extensions.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/scripts/check_version_bumps.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/scripts/install_image_pins.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/scripts/security-scan.sh +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/scripts/verify_installed_packages.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/template/.github/workflows/release.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/template/Dockerfile.pip +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/template/README.md +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/template/contracts/example.odcs.yaml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/template/contracts/example_csv.odcs.yaml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/template/requirements.lock +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/template/scripts/example.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/conftest.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/contract/__init__.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/contract/test_kinds.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/contract/test_loader.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/contract/test_model.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/contract/test_ontology_check.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/contract/test_pack.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/contract/test_read_tables.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/contract/test_write_modes.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/fixtures/demo/service-py/contracts/demo_orders_csv.odcs.yaml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/fixtures/demo/service-py/contracts/fx_eur_usd_rates.odcs.yaml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/fixtures/demo/service-py/contracts/py_daily_kpis.odcs.yaml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/fixtures/demo/service-py/old/demo_orders_csv.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/fixtures/demo/service-py/old/fx_eur_usd_rates.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/fixtures/demo/service-py/old/py_daily_kpis.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/fixtures/write_modes/append_node.odcs.yaml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/fixtures/write_modes/assets_node.odcs.yaml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/fixtures/write_modes/replace_node.odcs.yaml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/fixtures/write_modes/upsert_node.odcs.yaml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/odcs_builder.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/smoke/duckdb-stack/docker-compose.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/smoke/node_smoke/contracts/smoke.odcs.yaml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/smoke/node_smoke/scripts/smoke.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/smoke/postgres-stack/docker-compose.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/smoke/trino-stack/catalog/iceberg.properties +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/smoke/trino-stack/docker-compose.yml +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_adapter_naming.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_check_version_bumps_tags.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_ci_test_coverage.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_cli.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_closure.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_conform.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_context.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_contract_loader.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_contract_pin_consistency.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_csv_loader.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_csv_readers_https.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_csv_readers_integration.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_csv_source.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_entrypoint_shims.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_errors.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_harness.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_harness_content_check.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_harness_write_modes.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_hashing.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_hashing_vectors.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_image_requirements_sync.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_image_smoke_validation.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_install_image_pins.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_kind_registries.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_lint.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_no_legacy_names.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_package.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_packages.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_projection_vectors.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_python_version_consistency.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_rehearsal_version.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_release_pipeline_structure.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_shape.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_template.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_types.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_validation_probe_views.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_validation_s3.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_verify_installed_packages.py +0 -0
- {continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/tests/test_write_contract_fixture.py +0 -0
|
@@ -5,6 +5,103 @@ follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.16.0] - 2026-12-01
|
|
9
|
+
|
|
10
|
+
**TL;DR**
|
|
11
|
+
|
|
12
|
+
- On trino and duckdb the runtime lists every view that reads a seed, through
|
|
13
|
+
other views too, at its depth, and a new validation op, `drop_dependents`,
|
|
14
|
+
drops the objects an operator acknowledged once a reload is done. A seed
|
|
15
|
+
reload can now follow the same rules on every engine.
|
|
16
|
+
- `dependents_check` in `check` mode stops a reload on trino and duckdb the way
|
|
17
|
+
it does on postgres.
|
|
18
|
+
- Projects need no change: node runs, `pack` and the hashes are the same as in
|
|
19
|
+
0.15.0, and no node changes its `content_hash`.
|
|
20
|
+
|
|
21
|
+
**Upgrade**
|
|
22
|
+
|
|
23
|
+
1. A continuo install that runs `dependents_check` in `check` mode on trino or
|
|
24
|
+
duckdb now gets exit 1, `reason` `unowned_dependents`, for a view that reads
|
|
25
|
+
the seed and is in neither the allowed nor the acknowledged list. In
|
|
26
|
+
`report` mode the block carries the same `reason` and exits 0.
|
|
27
|
+
2. To remove the acknowledged objects after a reload on trino or duckdb, run
|
|
28
|
+
`VALIDATION_OP=drop_dependents` from this release's engine image with
|
|
29
|
+
`PROD_SCHEMA`, `TABLE_NAME` and `DROP_DEPENDENTS_OBJECTS`. On postgres it
|
|
30
|
+
drops nothing.
|
|
31
|
+
3. Adapter authors:
|
|
32
|
+
- `DependentsConformance` now expects a view on a view at depth 2.
|
|
33
|
+
- An adapter that overrides the `create_view` hook must override the new
|
|
34
|
+
`create_union_view` too.
|
|
35
|
+
- A `late_binding` adapter can declare `DependentsRemoval` (implement
|
|
36
|
+
`_drop_dependent`) and run `DependentsRemovalConformance`;
|
|
37
|
+
`continuo_engine_contract.views.dependent_views` lists a catalog's views
|
|
38
|
+
through views.
|
|
39
|
+
|
|
40
|
+
Versions: runtime 0.16.0 (pins continuo-contracts 0.5.0), engine contract 0.12.0, postgres adapter 0.5.1, trino adapter 0.7.0, duckdb adapter 0.5.0.
|
|
41
|
+
|
|
42
|
+
### Added
|
|
43
|
+
|
|
44
|
+
- A validation op, `drop_dependents` (`VALIDATION_OP=drop_dependents`), removes
|
|
45
|
+
the objects an operator acknowledged after a seed's reload on a `late_binding`
|
|
46
|
+
engine, as `DROP ... CASCADE` already does on postgres. It takes
|
|
47
|
+
`PROD_SCHEMA`, `TABLE_NAME` and `DROP_DEPENDENTS_OBJECTS` (a JSON array of
|
|
48
|
+
`"<schema>.<name>"`), lists the seed's dependents once, and drops each
|
|
49
|
+
requested object the listing holds, deepest first. An entry the listing does
|
|
50
|
+
not hold is skipped and never dropped. A failed drop does not stop the others
|
|
51
|
+
and exits 1 with `reason` `drop_failed`. On a `cascade` engine it drops
|
|
52
|
+
nothing. Its block names each object `dropped`, `skipped` and `failed`.
|
|
53
|
+
- The engine contract has a `DependentsRemoval` capability (a
|
|
54
|
+
`DependentsIntrospection`). Its `drop_dependents(schema, table, objects)` is a
|
|
55
|
+
template method that applies the rule above for every engine. The engine
|
|
56
|
+
supplies `_drop_dependent(dependent)`. The trino and duckdb adapters declare
|
|
57
|
+
it and drop a view with `DROP VIEW`.
|
|
58
|
+
- The engine contract has a `views` module. `dependent_views` lists the views
|
|
59
|
+
that read a table, directly or through other views, from the SQL of a
|
|
60
|
+
catalog's views. It is the walk a `late_binding` adapter lists its dependents
|
|
61
|
+
with.
|
|
62
|
+
- The duckdb adapter lists the views that read a table (`DependentsIntrospection`,
|
|
63
|
+
`completeness` `best_effort`), from `duckdb_views()`. Names resolve the way
|
|
64
|
+
DuckDB binds a view: a bare name in the view's own schema or in `main`, and
|
|
65
|
+
`x.name` as schema `x` or as catalog `x`'s `main`. Every candidate counts, so
|
|
66
|
+
a view can be listed for a same-named table it does not read, never missed.
|
|
67
|
+
`dependent_views` takes that second schema as `fallback_schema`.
|
|
68
|
+
- The conformance suite has `DependentsRemovalConformance`, and
|
|
69
|
+
`DependentsConformance` checks that a view on a view is listed at depth 2,
|
|
70
|
+
that each view of a diamond is listed once, and that an unrelated view is not
|
|
71
|
+
listed. Both classes build their views through the hooks of a shared
|
|
72
|
+
`ViewsConformanceBase`: `create_view` and a new `create_union_view`.
|
|
73
|
+
|
|
74
|
+
### Changed
|
|
75
|
+
|
|
76
|
+
- The trino adapter's `dependents` lists every view that reads the table,
|
|
77
|
+
directly or through other views, at its depth (1 for a view that names the
|
|
78
|
+
table, 2 for a view on that view, and so on), each view once at its smallest
|
|
79
|
+
depth. It listed only the views that name the table, all at depth 1, so it
|
|
80
|
+
missed an outside view on a continuo view.
|
|
81
|
+
- `dependents_check` decides the same way on both engine families. In `check`
|
|
82
|
+
mode a `late_binding` engine now stops (exit 1) on an object outside the
|
|
83
|
+
allowed and acknowledged sets (`unowned_dependents`), on an adapter that
|
|
84
|
+
cannot list dependents (`unowned_dependents`) and on a listing that fails,
|
|
85
|
+
as a `schema_bound` engine always did. Before, a `late_binding` check passed
|
|
86
|
+
and named the objects as views that "may go stale". `report` mode gives the
|
|
87
|
+
same `reason` and still exits 0. A stop's message names an object without
|
|
88
|
+
an owner as `<schema>.<name> (<kind>)`.
|
|
89
|
+
- The postgres adapter 0.5.1 changes only its engine contract pin, to 0.12.0.
|
|
90
|
+
- The template's Dockerfile and the README's engine examples build on the
|
|
91
|
+
`v0.16.0` engine images.
|
|
92
|
+
- Adapter authors: an adapter whose `dependents` lists only the objects that
|
|
93
|
+
read the table directly now fails `DependentsConformance`. The dependents
|
|
94
|
+
classes build views through two hooks, `create_view` and the new
|
|
95
|
+
`create_union_view`; an adapter that overrides `create_view` (its view
|
|
96
|
+
syntax differs from ANSI, or its `fetch` cannot run DDL) must override
|
|
97
|
+
`create_union_view` too, or the diamond and removal cases run the ANSI
|
|
98
|
+
default through `fetch`.
|
|
99
|
+
|
|
100
|
+
### Removed
|
|
101
|
+
|
|
102
|
+
- The trino adapter's direct `sqlglot` pin. It no longer parses SQL itself: the
|
|
103
|
+
view walk lives in the engine contract, which pins sqlglot.
|
|
104
|
+
|
|
8
105
|
## [0.15.0] - 2026-11-25
|
|
9
106
|
|
|
10
107
|
**TL;DR**
|
|
@@ -33,9 +33,11 @@ with `continuo-engine-contract[testing]`.
|
|
|
33
33
|
connections at first, and `drop_semantics` is declared) and the
|
|
34
34
|
shared conformance classes for every capability it declares:
|
|
35
35
|
`IntrospectionConformance` for `TableIntrospection`, `AppendConformance` for
|
|
36
|
-
`AppendCapable`, `UpsertConformance` for `UpsertCapable`,
|
|
37
|
-
`DependentsConformance` for `DependentsIntrospection
|
|
38
|
-
|
|
36
|
+
`AppendCapable`, `UpsertConformance` for `UpsertCapable`,
|
|
37
|
+
`DependentsConformance` for `DependentsIntrospection`, and
|
|
38
|
+
`DependentsRemovalConformance` for `DependentsRemoval`. Append and
|
|
39
|
+
upsert adapters must also run the introspection class, and a removal
|
|
40
|
+
adapter the dependents class. An adapter need not
|
|
39
41
|
declare capabilities its engine cannot support.
|
|
40
42
|
- Each adapter's integration suite MUST subclass the applicable classes,
|
|
41
43
|
supply connected `adapter` and temporary `schema` fixtures (and, for
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: continuo-python-runtime
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.16.0
|
|
4
4
|
Summary: Runtime harness, contract tooling, and CI lint for Continuo python nodes.
|
|
5
5
|
Author: Simone Carolini
|
|
6
6
|
Maintainer: Simone Carolini
|
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
13
13
|
Requires-Python: >=3.14
|
|
14
14
|
Requires-Dist: boto3==1.43.114
|
|
15
15
|
Requires-Dist: continuo-contracts==0.5.0
|
|
16
|
-
Requires-Dist: continuo-engine-contract==0.
|
|
16
|
+
Requires-Dist: continuo-engine-contract==0.12.0
|
|
17
17
|
Requires-Dist: pyarrow==26.0.0
|
|
18
18
|
Requires-Dist: pyyaml==6.0.3
|
|
19
19
|
Requires-Dist: sqlglot==30.23.0
|
|
@@ -115,8 +115,8 @@ last line of stdout, and Continuo's Go side parses it byte-for-byte
|
|
|
115
115
|
sentinel markers, the framing, and the field names inside the block — is
|
|
116
116
|
**frozen**. The additions are an optional `reason` key, written after
|
|
117
117
|
`unique_id` only when an outcome has a machine-readable code (for example
|
|
118
|
-
`image_contract_mismatch`), and the op's own keys that the `dependents_check
|
|
119
|
-
`probe_views` ops write after `reason`; a block without either keeps its bytes,
|
|
118
|
+
`image_contract_mismatch`), and the op's own keys that the `dependents_check`,
|
|
119
|
+
`probe_views` and `drop_dependents` ops write after `reason`; a block without either keeps its bytes,
|
|
120
120
|
and the sentinels, `schema_version` and the five standard keys do not change. Reuse
|
|
121
121
|
it; never change it from this side alone. A change here that
|
|
122
122
|
the Go parser has not been taught is a production outage, not a refactor.
|
|
@@ -554,11 +554,11 @@ A domain repo picks its warehouse engine by which base image it builds
|
|
|
554
554
|
`FROM`:
|
|
555
555
|
|
|
556
556
|
```dockerfile
|
|
557
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-postgres:v0.
|
|
557
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-postgres:v0.16.0
|
|
558
558
|
# or
|
|
559
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-trino:v0.
|
|
559
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-trino:v0.16.0
|
|
560
560
|
# or
|
|
561
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-duckdb:v0.
|
|
561
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-duckdb:v0.16.0
|
|
562
562
|
```
|
|
563
563
|
|
|
564
564
|
The engine is part of the image **name**; the tag is the bare version, so
|
|
@@ -599,20 +599,30 @@ Both shapes end up running the same runtime and the same adapter version;
|
|
|
599
599
|
which one you pick only changes who controls the base OS layer underneath
|
|
600
600
|
them.
|
|
601
601
|
|
|
602
|
-
## Dependents check and
|
|
602
|
+
## Dependents check, view probe and dependents drop
|
|
603
603
|
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
604
|
+
Three validation ops act on what reads a seed. `dependents_check` and
|
|
605
|
+
`probe_views` read the warehouse and change nothing; `drop_dependents` drops the
|
|
606
|
+
objects an operator acknowledged. They run through the same runner image as the
|
|
607
|
+
other validation ops (`VALIDATION_OP`), need no `DBT_TARGET_SCHEMA`, and print
|
|
608
|
+
one result block as the last line of stdout.
|
|
607
609
|
|
|
608
610
|
A seed reload drops and recreates the seed's production table. On an engine where
|
|
609
611
|
a drop destroys the objects that read the table (`drop_semantics` `cascade`,
|
|
610
612
|
postgres) that takes every view, function and constraint built on the seed with
|
|
611
613
|
it, including objects continuo does not own. On an engine where those objects
|
|
612
614
|
survive and fail on their next read (`late_binding`, trino and duckdb) they
|
|
613
|
-
may
|
|
614
|
-
with what the operator has allowed or
|
|
615
|
-
|
|
615
|
+
may break once the table's columns change. `dependents_check` lists what a
|
|
616
|
+
reload would touch and compares it with what the operator has allowed or
|
|
617
|
+
acknowledged; `drop_dependents` removes the acknowledged objects after a reload
|
|
618
|
+
on a `late_binding` engine, as `DROP ... CASCADE` already does on postgres;
|
|
619
|
+
`probe_views` tries named views after a reload and says which no longer bind.
|
|
620
|
+
|
|
621
|
+
Postgres lists every kind of object that reads the seed, exactly (a recursive
|
|
622
|
+
`pg_depend` walk). Trino and duckdb list every view that reads it directly or
|
|
623
|
+
through other views, at its depth, by parsing each view's SQL
|
|
624
|
+
(`best_effort`: a view built from dynamic SQL, or one in another catalog, is
|
|
625
|
+
missed); see the adapters' READMEs.
|
|
616
626
|
|
|
617
627
|
`dependents_check` runs in two places. `check` runs in the seed task's own pod just
|
|
618
628
|
before dbt and stops the reload with exit 1 when the check concludes it must.
|
|
@@ -649,17 +659,53 @@ After the standard keys (and `reason` when one applies): `op` (`dependents_check
|
|
|
649
659
|
|---|---|---|---|
|
|
650
660
|
| a missing or malformed input, no adapter, missing adapter env | none | exit 2 | exit 2 |
|
|
651
661
|
| the adapter's family differs from `DEPENDENTS_CHECK_ENGINE_FAMILY`, or it declares none | `engine_mismatch` | exit 1 | exit 0 |
|
|
652
|
-
| the adapter cannot list dependents
|
|
653
|
-
| the adapter cannot list dependents, `late_binding` | none | exit 0 | exit 0 |
|
|
662
|
+
| the adapter cannot list dependents | `unowned_dependents` | exit 1 | exit 0 |
|
|
654
663
|
| the connection fails | `warehouse_unreachable` | exit 1 | exit 0 |
|
|
655
|
-
| the listing fails
|
|
656
|
-
|
|
|
657
|
-
|
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
664
|
+
| the listing fails | none | exit 1 | exit 0 |
|
|
665
|
+
| listed, an object is not allowed | `unowned_dependents` | exit 1 | exit 0 |
|
|
666
|
+
| anything else listed | none | exit 0 | exit 0 |
|
|
667
|
+
|
|
668
|
+
The table is the same on both families: a reload stops on an object continuo
|
|
669
|
+
does not own whether the engine's drop destroys it (`schema_bound`) or leaves
|
|
670
|
+
it reading a re-created table (`late_binding`). A seed table that does not
|
|
671
|
+
exist yet has no dependents and passes. A stop's `message` starts with its
|
|
672
|
+
`reason` and names each object outside the set as `<schema>.<name> (<kind>,
|
|
673
|
+
owner <owner>)`, or `<schema>.<name> (<kind>)` when the engine records no
|
|
674
|
+
owner.
|
|
675
|
+
|
|
676
|
+
### `drop_dependents`
|
|
677
|
+
|
|
678
|
+
Runs after a seed's reload succeeds on a `late_binding` engine, with the
|
|
679
|
+
objects the operator acknowledged. Its inputs:
|
|
680
|
+
|
|
681
|
+
| Variable | Meaning |
|
|
682
|
+
|---|---|
|
|
683
|
+
| `PROD_SCHEMA`, `TABLE_NAME` | The seed's production relation. |
|
|
684
|
+
| `DROP_DEPENDENTS_OBJECTS` | Required JSON array of `"<schema>.<name>"`, split on the first dot. `[]` drops nothing and does not connect. |
|
|
685
|
+
| `NODE_ID` | Optional; the block's `unique_id`. Default `<PROD_SCHEMA>.<TABLE_NAME>`. |
|
|
686
|
+
|
|
687
|
+
The op lists the seed's dependents once and drops each requested object the
|
|
688
|
+
listing holds, deepest first, through the adapter's `DependentsRemoval`. An
|
|
689
|
+
entry matches a listed object when, trimmed and in lower case, it equals
|
|
690
|
+
`<schema>.<name>` in lower case. An entry the listing does not hold is skipped
|
|
691
|
+
and never dropped: the op drops nothing it cannot tie to the seed. A drop that
|
|
692
|
+
fails does not stop the others. On a `cascade` engine (postgres) it drops
|
|
693
|
+
nothing and does not connect: the load's `DROP ... CASCADE` already removed the
|
|
694
|
+
objects, and `message` says so.
|
|
695
|
+
|
|
696
|
+
The block has `op` (`drop_dependents`), `drop_semantics` (the adapter's),
|
|
697
|
+
`dropped` (`{schema, name, kind, depth}` in the order dropped), `skipped` (the
|
|
698
|
+
entries as given) and `failed` (`{schema, name, kind, depth, error}`, `error`
|
|
699
|
+
the first line of the failure, at most 500 characters). `message` names each
|
|
700
|
+
failed and skipped object.
|
|
701
|
+
|
|
702
|
+
| Situation | `reason` | exit |
|
|
703
|
+
|---|---|---|
|
|
704
|
+
| a missing or malformed input, no adapter, missing adapter env, a `late_binding` adapter that is not a `DependentsRemoval`, an adapter with no known `drop_semantics`, an unexpected error | none | 2 |
|
|
705
|
+
| the connection fails; nothing is dropped | `warehouse_unreachable` | 1 |
|
|
706
|
+
| the listing fails; nothing is dropped | none | 1 |
|
|
707
|
+
| a drop failed | `drop_failed` | 1 |
|
|
708
|
+
| every object dropped or skipped, a `cascade` engine, or no objects | none | 0 |
|
|
663
709
|
|
|
664
710
|
### `probe_views`
|
|
665
711
|
|
|
@@ -94,8 +94,8 @@ last line of stdout, and Continuo's Go side parses it byte-for-byte
|
|
|
94
94
|
sentinel markers, the framing, and the field names inside the block — is
|
|
95
95
|
**frozen**. The additions are an optional `reason` key, written after
|
|
96
96
|
`unique_id` only when an outcome has a machine-readable code (for example
|
|
97
|
-
`image_contract_mismatch`), and the op's own keys that the `dependents_check
|
|
98
|
-
`probe_views` ops write after `reason`; a block without either keeps its bytes,
|
|
97
|
+
`image_contract_mismatch`), and the op's own keys that the `dependents_check`,
|
|
98
|
+
`probe_views` and `drop_dependents` ops write after `reason`; a block without either keeps its bytes,
|
|
99
99
|
and the sentinels, `schema_version` and the five standard keys do not change. Reuse
|
|
100
100
|
it; never change it from this side alone. A change here that
|
|
101
101
|
the Go parser has not been taught is a production outage, not a refactor.
|
|
@@ -533,11 +533,11 @@ A domain repo picks its warehouse engine by which base image it builds
|
|
|
533
533
|
`FROM`:
|
|
534
534
|
|
|
535
535
|
```dockerfile
|
|
536
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-postgres:v0.
|
|
536
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-postgres:v0.16.0
|
|
537
537
|
# or
|
|
538
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-trino:v0.
|
|
538
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-trino:v0.16.0
|
|
539
539
|
# or
|
|
540
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-duckdb:v0.
|
|
540
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-duckdb:v0.16.0
|
|
541
541
|
```
|
|
542
542
|
|
|
543
543
|
The engine is part of the image **name**; the tag is the bare version, so
|
|
@@ -578,20 +578,30 @@ Both shapes end up running the same runtime and the same adapter version;
|
|
|
578
578
|
which one you pick only changes who controls the base OS layer underneath
|
|
579
579
|
them.
|
|
580
580
|
|
|
581
|
-
## Dependents check and
|
|
581
|
+
## Dependents check, view probe and dependents drop
|
|
582
582
|
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
583
|
+
Three validation ops act on what reads a seed. `dependents_check` and
|
|
584
|
+
`probe_views` read the warehouse and change nothing; `drop_dependents` drops the
|
|
585
|
+
objects an operator acknowledged. They run through the same runner image as the
|
|
586
|
+
other validation ops (`VALIDATION_OP`), need no `DBT_TARGET_SCHEMA`, and print
|
|
587
|
+
one result block as the last line of stdout.
|
|
586
588
|
|
|
587
589
|
A seed reload drops and recreates the seed's production table. On an engine where
|
|
588
590
|
a drop destroys the objects that read the table (`drop_semantics` `cascade`,
|
|
589
591
|
postgres) that takes every view, function and constraint built on the seed with
|
|
590
592
|
it, including objects continuo does not own. On an engine where those objects
|
|
591
593
|
survive and fail on their next read (`late_binding`, trino and duckdb) they
|
|
592
|
-
may
|
|
593
|
-
with what the operator has allowed or
|
|
594
|
-
|
|
594
|
+
may break once the table's columns change. `dependents_check` lists what a
|
|
595
|
+
reload would touch and compares it with what the operator has allowed or
|
|
596
|
+
acknowledged; `drop_dependents` removes the acknowledged objects after a reload
|
|
597
|
+
on a `late_binding` engine, as `DROP ... CASCADE` already does on postgres;
|
|
598
|
+
`probe_views` tries named views after a reload and says which no longer bind.
|
|
599
|
+
|
|
600
|
+
Postgres lists every kind of object that reads the seed, exactly (a recursive
|
|
601
|
+
`pg_depend` walk). Trino and duckdb list every view that reads it directly or
|
|
602
|
+
through other views, at its depth, by parsing each view's SQL
|
|
603
|
+
(`best_effort`: a view built from dynamic SQL, or one in another catalog, is
|
|
604
|
+
missed); see the adapters' READMEs.
|
|
595
605
|
|
|
596
606
|
`dependents_check` runs in two places. `check` runs in the seed task's own pod just
|
|
597
607
|
before dbt and stops the reload with exit 1 when the check concludes it must.
|
|
@@ -628,17 +638,53 @@ After the standard keys (and `reason` when one applies): `op` (`dependents_check
|
|
|
628
638
|
|---|---|---|---|
|
|
629
639
|
| a missing or malformed input, no adapter, missing adapter env | none | exit 2 | exit 2 |
|
|
630
640
|
| the adapter's family differs from `DEPENDENTS_CHECK_ENGINE_FAMILY`, or it declares none | `engine_mismatch` | exit 1 | exit 0 |
|
|
631
|
-
| the adapter cannot list dependents
|
|
632
|
-
| the adapter cannot list dependents, `late_binding` | none | exit 0 | exit 0 |
|
|
641
|
+
| the adapter cannot list dependents | `unowned_dependents` | exit 1 | exit 0 |
|
|
633
642
|
| the connection fails | `warehouse_unreachable` | exit 1 | exit 0 |
|
|
634
|
-
| the listing fails
|
|
635
|
-
|
|
|
636
|
-
|
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
643
|
+
| the listing fails | none | exit 1 | exit 0 |
|
|
644
|
+
| listed, an object is not allowed | `unowned_dependents` | exit 1 | exit 0 |
|
|
645
|
+
| anything else listed | none | exit 0 | exit 0 |
|
|
646
|
+
|
|
647
|
+
The table is the same on both families: a reload stops on an object continuo
|
|
648
|
+
does not own whether the engine's drop destroys it (`schema_bound`) or leaves
|
|
649
|
+
it reading a re-created table (`late_binding`). A seed table that does not
|
|
650
|
+
exist yet has no dependents and passes. A stop's `message` starts with its
|
|
651
|
+
`reason` and names each object outside the set as `<schema>.<name> (<kind>,
|
|
652
|
+
owner <owner>)`, or `<schema>.<name> (<kind>)` when the engine records no
|
|
653
|
+
owner.
|
|
654
|
+
|
|
655
|
+
### `drop_dependents`
|
|
656
|
+
|
|
657
|
+
Runs after a seed's reload succeeds on a `late_binding` engine, with the
|
|
658
|
+
objects the operator acknowledged. Its inputs:
|
|
659
|
+
|
|
660
|
+
| Variable | Meaning |
|
|
661
|
+
|---|---|
|
|
662
|
+
| `PROD_SCHEMA`, `TABLE_NAME` | The seed's production relation. |
|
|
663
|
+
| `DROP_DEPENDENTS_OBJECTS` | Required JSON array of `"<schema>.<name>"`, split on the first dot. `[]` drops nothing and does not connect. |
|
|
664
|
+
| `NODE_ID` | Optional; the block's `unique_id`. Default `<PROD_SCHEMA>.<TABLE_NAME>`. |
|
|
665
|
+
|
|
666
|
+
The op lists the seed's dependents once and drops each requested object the
|
|
667
|
+
listing holds, deepest first, through the adapter's `DependentsRemoval`. An
|
|
668
|
+
entry matches a listed object when, trimmed and in lower case, it equals
|
|
669
|
+
`<schema>.<name>` in lower case. An entry the listing does not hold is skipped
|
|
670
|
+
and never dropped: the op drops nothing it cannot tie to the seed. A drop that
|
|
671
|
+
fails does not stop the others. On a `cascade` engine (postgres) it drops
|
|
672
|
+
nothing and does not connect: the load's `DROP ... CASCADE` already removed the
|
|
673
|
+
objects, and `message` says so.
|
|
674
|
+
|
|
675
|
+
The block has `op` (`drop_dependents`), `drop_semantics` (the adapter's),
|
|
676
|
+
`dropped` (`{schema, name, kind, depth}` in the order dropped), `skipped` (the
|
|
677
|
+
entries as given) and `failed` (`{schema, name, kind, depth, error}`, `error`
|
|
678
|
+
the first line of the failure, at most 500 characters). `message` names each
|
|
679
|
+
failed and skipped object.
|
|
680
|
+
|
|
681
|
+
| Situation | `reason` | exit |
|
|
682
|
+
|---|---|---|
|
|
683
|
+
| a missing or malformed input, no adapter, missing adapter env, a `late_binding` adapter that is not a `DependentsRemoval`, an adapter with no known `drop_semantics`, an unexpected error | none | 2 |
|
|
684
|
+
| the connection fails; nothing is dropped | `warehouse_unreachable` | 1 |
|
|
685
|
+
| the listing fails; nothing is dropped | none | 1 |
|
|
686
|
+
| a drop failed | `drop_failed` | 1 |
|
|
687
|
+
| every object dropped or skipped, a `cascade` engine, or no objects | none | 0 |
|
|
642
688
|
|
|
643
689
|
### `probe_views`
|
|
644
690
|
|
|
@@ -86,6 +86,41 @@ on any address among them, surfaces immediately.
|
|
|
86
86
|
- A read is one single query: top-level `PIVOT` / `UNPIVOT` statements are
|
|
87
87
|
rejected by the single-read gate. Wrap them: `SELECT * FROM (PIVOT ...)`.
|
|
88
88
|
|
|
89
|
+
## Dependents of a table
|
|
90
|
+
|
|
91
|
+
DuckDB declares `drop_semantics = "late_binding"`: a drop of a table (even
|
|
92
|
+
`DROP ... CASCADE`) leaves the views that read it, and a view fails on its next
|
|
93
|
+
read once the re-created table's columns differ. The adapter is a
|
|
94
|
+
`DependentsRemoval`, so it can both list those views and drop them.
|
|
95
|
+
|
|
96
|
+
`dependents(schema, table)` reads every view of the lake's catalog from
|
|
97
|
+
`duckdb_views()` (DuckDB reports each as its `CREATE VIEW` statement) and hands
|
|
98
|
+
them to the contract's view walk (`continuo_engine_contract.views.dependent_views`),
|
|
99
|
+
which parses each as DuckDB SQL. A view that names the table is listed at depth
|
|
100
|
+
1, a view on that view at depth 2, and so on, each view once at its smallest
|
|
101
|
+
depth, with kind `view` and no owner. Names compare in lower case and resolve
|
|
102
|
+
the way DuckDB binds a view (checked on DuckDB 1.5.6):
|
|
103
|
+
|
|
104
|
+
| Reference in the view | Read as |
|
|
105
|
+
|---|---|
|
|
106
|
+
| `name` | `<view's schema>.name`, and `main.name` (DuckDB falls back to `main` when the view's schema has no such relation) |
|
|
107
|
+
| `x.name` | schema `x` in the lake's catalog, and catalog `x`'s `main.name` |
|
|
108
|
+
| `c.x.name` | exactly that |
|
|
109
|
+
|
|
110
|
+
The walk does not know which of those relations exist, so every candidate
|
|
111
|
+
counts: a view can be listed for a same-named table it does not read, never
|
|
112
|
+
missed for one it does. The trino adapter's README describes the CTE and
|
|
113
|
+
unparsable-definition rules, which are the same.
|
|
114
|
+
|
|
115
|
+
`completeness` is `best_effort`: DuckDB keeps no dependency between a view and
|
|
116
|
+
what it reads, so a view that builds its SQL dynamically, or one in another
|
|
117
|
+
attached catalog, is missed. A missing table or schema gives no objects.
|
|
118
|
+
|
|
119
|
+
`drop_dependents(schema, table, objects)` (the contract's template method)
|
|
120
|
+
drops each requested view that the listing still ties to the table, deepest
|
|
121
|
+
first, with `DROP VIEW`; a requested entry the listing does not hold is skipped
|
|
122
|
+
and never dropped.
|
|
123
|
+
|
|
89
124
|
## Parity with the postgres and trino adapters
|
|
90
125
|
|
|
91
126
|
| Behaviour | postgres | trino | duckdb |
|
|
@@ -96,6 +131,8 @@ on any address among them, surfaces immediately.
|
|
|
96
131
|
| `ensure_table` | creates if absent, layout on create | same | same, in one transaction with the existence check |
|
|
97
132
|
| `load` (replace contents) | one transaction | atomic table swap (no multi-statement transactions) | one transaction: `DELETE` then `INSERT` |
|
|
98
133
|
| Physical layout keys | `indexes` | `partitioning`, `sorted_by`, `format`, `format_version` | `partitioned_by`, `sorted_by` |
|
|
134
|
+
| `dependents` | `pg_depend` walk, every kind, `exact` | views through views, parsed SQL, `best_effort` | same as trino |
|
|
135
|
+
| `drop_dependents` | not declared (`DROP ... CASCADE` removes them) | `DROP VIEW`, deepest first | same as trino |
|
|
99
136
|
|
|
100
137
|
Not applicable here: postgres `indexes`; trino `format` and `format_version`
|
|
101
138
|
(DuckLake always writes Parquet). The postgres advisory lock has no DuckLake
|
|
@@ -7,6 +7,7 @@ from contextlib import AbstractContextManager
|
|
|
7
7
|
from typing import TYPE_CHECKING
|
|
8
8
|
|
|
9
9
|
from continuo_engine_contract.port import LiveColumn # type: ignore[import-untyped]
|
|
10
|
+
from continuo_engine_contract.views import ViewDefinition # type: ignore[import-untyped]
|
|
10
11
|
|
|
11
12
|
from continuo_duckdb_adapter.domain.columns import ColumnDefinition
|
|
12
13
|
from continuo_duckdb_adapter.domain.identifiers import Identifier, QualifiedTable
|
|
@@ -23,6 +24,11 @@ class LakeConflictError(Exception):
|
|
|
23
24
|
class LakeGateway(ABC):
|
|
24
25
|
"""Everything the warehouse use cases ask of one DuckLake connection."""
|
|
25
26
|
|
|
27
|
+
@property
|
|
28
|
+
@abstractmethod
|
|
29
|
+
def catalog_name(self) -> str:
|
|
30
|
+
"""The name the lake is attached under; every table and view lives in it."""
|
|
31
|
+
|
|
26
32
|
@abstractmethod
|
|
27
33
|
def transaction(self) -> AbstractContextManager[None]:
|
|
28
34
|
"""BEGIN ... COMMIT; ROLLBACK (logged, never masking) if the body raises."""
|
|
@@ -85,5 +91,13 @@ class LakeGateway(ABC):
|
|
|
85
91
|
) -> None:
|
|
86
92
|
"""Insert *data*'s rows with a new *key*, overwrite rows whose key exists."""
|
|
87
93
|
|
|
94
|
+
@abstractmethod
|
|
95
|
+
def views(self) -> "list[ViewDefinition]":
|
|
96
|
+
"""Every view of the lake's catalog with its SQL, in schema and name order."""
|
|
97
|
+
|
|
98
|
+
@abstractmethod
|
|
99
|
+
def drop_view(self, view: QualifiedTable) -> None:
|
|
100
|
+
"""Drop the view *view*; raise if it does not exist."""
|
|
101
|
+
|
|
88
102
|
@abstractmethod
|
|
89
103
|
def close(self) -> None: ...
|
|
@@ -15,11 +15,15 @@ from typing import TYPE_CHECKING, Any
|
|
|
15
15
|
|
|
16
16
|
from continuo_engine_contract.port import ( # type: ignore[import-untyped]
|
|
17
17
|
AppendCapable,
|
|
18
|
+
Dependent,
|
|
19
|
+
Dependents,
|
|
20
|
+
DependentsRemoval,
|
|
18
21
|
LiveColumn,
|
|
19
22
|
UpsertCapable,
|
|
20
23
|
WarehouseAdapter,
|
|
21
24
|
)
|
|
22
25
|
from continuo_engine_contract.sql import ensure_single_read # type: ignore[import-untyped]
|
|
26
|
+
from continuo_engine_contract.views import dependent_views # type: ignore[import-untyped]
|
|
23
27
|
|
|
24
28
|
from continuo_duckdb_adapter.domain.columns import ColumnDefinition, column_types
|
|
25
29
|
from continuo_duckdb_adapter.domain.identifiers import Identifier, QualifiedTable
|
|
@@ -37,6 +41,10 @@ logger = logging.getLogger("continuo_duckdb_adapter")
|
|
|
37
41
|
_CONFLICT_ATTEMPTS = 5
|
|
38
42
|
_CONFLICT_BACKOFF_SECONDS = 0.05
|
|
39
43
|
|
|
44
|
+
# The schema DuckDB looks a name up in when the view's own schema has no such
|
|
45
|
+
# relation, and the schema a ``<catalog>.<name>`` reference means.
|
|
46
|
+
_FALLBACK_SCHEMA = "main"
|
|
47
|
+
|
|
40
48
|
|
|
41
49
|
def _bare_read(sql: str) -> str:
|
|
42
50
|
"""*sql* without surrounding whitespace or one trailing terminator."""
|
|
@@ -47,7 +55,7 @@ def _columns(raw: list[dict]) -> list[ColumnDefinition]:
|
|
|
47
55
|
return [ColumnDefinition.from_mapping(entry) for entry in raw]
|
|
48
56
|
|
|
49
57
|
|
|
50
|
-
class LakeWarehouse(WarehouseAdapter, AppendCapable, UpsertCapable):
|
|
58
|
+
class LakeWarehouse(WarehouseAdapter, AppendCapable, UpsertCapable, DependentsRemoval):
|
|
51
59
|
"""WarehouseAdapter implemented over a LakeGateway."""
|
|
52
60
|
|
|
53
61
|
drop_semantics = "late_binding"
|
|
@@ -259,6 +267,50 @@ class LakeWarehouse(WarehouseAdapter, AppendCapable, UpsertCapable):
|
|
|
259
267
|
)
|
|
260
268
|
self._gateway.merge_arrow(target, data, list(primary_key))
|
|
261
269
|
|
|
270
|
+
# --- Dependents -----------------------------------------------------------
|
|
271
|
+
|
|
272
|
+
def dependents(self, schema: str, table: str) -> Dependents:
|
|
273
|
+
"""The views that read ``schema.table``, directly or through other views.
|
|
274
|
+
|
|
275
|
+
The lake's views are read from ``duckdb_views()`` and handed to the
|
|
276
|
+
contract's view walk (:func:`continuo_engine_contract.views.dependent_views`),
|
|
277
|
+
which parses each as DuckDB SQL and lists every view that reads the table
|
|
278
|
+
at its depth, with no owner (DuckLake records none). Names resolve the
|
|
279
|
+
way DuckDB binds a view: a bare name in the view's own schema or in
|
|
280
|
+
``main``, and ``x.name`` as schema ``x`` or as catalog ``x``'s ``main``;
|
|
281
|
+
every candidate counts, so a view can be listed for a same-named table
|
|
282
|
+
it does not read. DuckDB keeps no dependency between a view and what it
|
|
283
|
+
reads, so the listing is ``best_effort``: it misses a view that builds
|
|
284
|
+
its SQL dynamically and a view in another catalog. A missing table or
|
|
285
|
+
schema gives no objects.
|
|
286
|
+
"""
|
|
287
|
+
seed = QualifiedTable.of(schema, table)
|
|
288
|
+
return Dependents(
|
|
289
|
+
objects=dependent_views(
|
|
290
|
+
self._gateway.views(),
|
|
291
|
+
catalog=self._gateway.catalog_name,
|
|
292
|
+
schema=seed.schema.name,
|
|
293
|
+
table=seed.table.name,
|
|
294
|
+
dialect="duckdb",
|
|
295
|
+
fallback_schema=_FALLBACK_SCHEMA,
|
|
296
|
+
),
|
|
297
|
+
completeness="best_effort",
|
|
298
|
+
)
|
|
299
|
+
|
|
300
|
+
def _drop_dependent(self, dependent: Dependent) -> None:
|
|
301
|
+
"""Drop the view *dependent*; a drop of a view destroys nothing else on DuckLake.
|
|
302
|
+
|
|
303
|
+
``dependents`` lists only views, so any other kind raises ``ValueError``
|
|
304
|
+
before anything is dropped.
|
|
305
|
+
"""
|
|
306
|
+
if dependent.kind != "view":
|
|
307
|
+
raise ValueError(
|
|
308
|
+
f"duckdb drops only views, not {dependent.schema}.{dependent.name} "
|
|
309
|
+
f"of kind {dependent.kind!r}"
|
|
310
|
+
)
|
|
311
|
+
logger.info("dropping view %s.%s", dependent.schema, dependent.name)
|
|
312
|
+
self._gateway.drop_view(QualifiedTable.of(dependent.schema, dependent.name))
|
|
313
|
+
|
|
262
314
|
def close(self) -> None:
|
|
263
315
|
"""Release the underlying connection."""
|
|
264
316
|
self._gateway.close()
|
|
@@ -157,6 +157,13 @@ class DdlRenderer:
|
|
|
157
157
|
"AND lower(table_name) = lower(?) ORDER BY column_index"
|
|
158
158
|
)
|
|
159
159
|
|
|
160
|
+
# Every view of the catalog; the internal ones DuckDB defines are left out.
|
|
161
|
+
VIEWS_QUERY = (
|
|
162
|
+
"SELECT schema_name, view_name, sql FROM duckdb_views() "
|
|
163
|
+
"WHERE NOT internal AND lower(database_name) = lower(?) "
|
|
164
|
+
"ORDER BY schema_name, view_name"
|
|
165
|
+
)
|
|
166
|
+
|
|
160
167
|
def __init__(self, catalog: str) -> None:
|
|
161
168
|
self._catalog = catalog
|
|
162
169
|
|
|
@@ -179,6 +186,9 @@ class DdlRenderer:
|
|
|
179
186
|
def drop_table_if_exists(self, table: QualifiedTable) -> str:
|
|
180
187
|
return f"DROP TABLE IF EXISTS {self.table_ref(table)}"
|
|
181
188
|
|
|
189
|
+
def drop_view(self, view: QualifiedTable) -> str:
|
|
190
|
+
return f"DROP VIEW {self.table_ref(view)}"
|
|
191
|
+
|
|
182
192
|
def create_table(
|
|
183
193
|
self,
|
|
184
194
|
table: QualifiedTable,
|
|
@@ -21,6 +21,7 @@ from typing import TYPE_CHECKING
|
|
|
21
21
|
|
|
22
22
|
import duckdb
|
|
23
23
|
from continuo_engine_contract.port import LiveColumn # type: ignore[import-untyped]
|
|
24
|
+
from continuo_engine_contract.views import ViewDefinition # type: ignore[import-untyped]
|
|
24
25
|
|
|
25
26
|
from continuo_duckdb_adapter.application.ports import LakeConflictError, LakeGateway
|
|
26
27
|
from continuo_duckdb_adapter.domain.columns import ColumnDefinition
|
|
@@ -249,6 +250,10 @@ class DuckLakeSession(LakeGateway):
|
|
|
249
250
|
|
|
250
251
|
# --- LakeGateway --------------------------------------------------------
|
|
251
252
|
|
|
253
|
+
@property
|
|
254
|
+
def catalog_name(self) -> str:
|
|
255
|
+
return self._renderer.catalog_name
|
|
256
|
+
|
|
252
257
|
def create_schema_if_not_exists(self, schema: Identifier) -> None:
|
|
253
258
|
self._run(self._renderer.create_schema_if_not_exists(schema))
|
|
254
259
|
|
|
@@ -342,6 +347,14 @@ class DuckLakeSession(LakeGateway):
|
|
|
342
347
|
with contextlib.suppress(duckdb.Error):
|
|
343
348
|
self._con.unregister(view)
|
|
344
349
|
|
|
350
|
+
def views(self) -> list[ViewDefinition]:
|
|
351
|
+
with self._guarded(conflicts=False):
|
|
352
|
+
rows = self._raw(DdlRenderer.VIEWS_QUERY, [self._renderer.catalog_name]).fetchall()
|
|
353
|
+
return [ViewDefinition(schema, name, sql or "") for schema, name, sql in rows]
|
|
354
|
+
|
|
355
|
+
def drop_view(self, view: QualifiedTable) -> None:
|
|
356
|
+
self._run(self._renderer.drop_view(view))
|
|
357
|
+
|
|
345
358
|
def close(self) -> None:
|
|
346
359
|
try:
|
|
347
360
|
self._con.close()
|
{continuo_python_runtime-0.15.0 → continuo_python_runtime-0.16.0}/adapters/duckdb/pyproject.toml
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[project]
|
|
2
|
-
version = "0.
|
|
2
|
+
version = "0.5.0"
|
|
3
3
|
name = "continuo-duckdb-adapter"
|
|
4
4
|
description = "DuckDB (DuckLake) warehouse adapter for Continuo: validation and python-node runtime."
|
|
5
5
|
authors = [{ name = "Simone Carolini" }]
|
|
@@ -10,7 +10,7 @@ dependencies = [
|
|
|
10
10
|
# Pinned exactly for the same reason as the postgres adapter: the
|
|
11
11
|
# [tool.uv.sources] redirect below is uv-only and never reaches built
|
|
12
12
|
# metadata, and this adapter subclasses the contract's port directly.
|
|
13
|
-
"continuo-engine-contract==0.
|
|
13
|
+
"continuo-engine-contract==0.12.0",
|
|
14
14
|
"duckdb==1.5.6",
|
|
15
15
|
"pyarrow==26.0.0",
|
|
16
16
|
]
|