openstatspec 0.9.0__tar.gz → 0.9.1__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.
- {openstatspec-0.9.0 → openstatspec-0.9.1}/CHANGELOG.md +18 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/PKG-INFO +3 -2
- {openstatspec-0.9.0 → openstatspec-0.9.1}/README.md +1 -1
- {openstatspec-0.9.0 → openstatspec-0.9.1}/pyproject.toml +2 -2
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/spss/sav.py +20 -22
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/sql/profiles.py +63 -4
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/sql/wide.py +34 -3
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_cli.py +1 -1
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_sql_profiles.py +43 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/.github/verify_release_ref.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/.github/workflows/ci.yml +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/.github/workflows/release.yml +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/.gitignore +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/THIRD_PARTY_NOTICES.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/docs/architecture.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/docs/in-place-transformation.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/docs/pyspssio-spike.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/docs/release-readiness.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/docs/sav-profile.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/docs/sql-transformation-workflow.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/docs/superpowers/plans/2026-08-12-python-v071-stable-pin.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/docs/superpowers/specs/2026-08-12-python-stable-specification-pin-design.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/docs/transformations.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/.github/workflows/ci.yml +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/.github/workflows/release.yml +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/.gitignore +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/CHANGELOG.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/CONTRIBUTING.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/README.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/RELEASING.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/ROADMAP.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/VERSIONING.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/fixtures/LICENSE.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/fixtures/README.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/fixtures/core-numeric-string.sav +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/fixtures/dictionary-and-display.sav +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/fixtures/generate-fixtures.sps +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/fixtures/long-utf8-and-attributes.sav +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/fixtures/missing-rules.sav +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/fixtures/sets.sav +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/fixtures/weight-and-string-mr.sav +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/fixtures/zsav-compressed.zsav +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/in-place-transformation-0.1.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/in-place-transformation-0.2.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/spss-sav-zsav-1.0.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/spss-syntax-frontend-0.1.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/spss-syntax-frontend-0.2.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/spss-syntax-frontend-0.3.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/sql-transformation-workflow-0.1.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/transformation-plan-0.1.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/transformation-plan-0.2.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/architecture.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/database-io-policy-v1.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/implementation-profiles/python-pyspssio-0.5.1.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/mssql-dialect-roadmap.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/spss-frontend-roadmap.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/spss-profile.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/spss-sav-zsav-profile-1.0.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/spss-syntax-frontend-profile-0.1.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/spss-syntax-frontend-profile-0.2.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/spss-syntax-frontend-profile-0.3.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/sql-transformation-workflow-profile-0.1.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/superpowers/plans/2026-08-12-roadmap-v030-bookkeeping.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/superpowers/plans/2026-08-21-spss-frontend-03.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/superpowers/specs/2026-08-21-spss-frontend-expansion-design.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/transformation-plan-profile-0.1.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/transformation-plan-profile-0.2.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/transformation-plan-sql-binding-0.1.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/transformation-plan-sql-binding-0.2.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/examples/basic-spss-mapping.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/examples/spss-syntax-transformation-0.2.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/examples/spss-syntax-transformation-0.3.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/examples/spss-syntax-transformation.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/examples/sql-transformation-workflow.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/pyproject.toml +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/sql/dialect-profile-baseline.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/sql/dialect-profiles.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/sql/dolt-adapter-declaration-schema.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/sql/dolt-adapter-declarations/README.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/sql/profile-capabilities.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/sql/schema-outline.sql +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/sql/server-version-policy.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/sql/transformation-plan-profile-schema.sql +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/sql/transformation-workflow-profile-schema.sql +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/src/openstatspec_specification/__init__.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/src/openstatspec_specification/artifacts.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/src/openstatspec_specification/dolt.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/tests/test_contract_artifacts.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/tests/test_dolt_declarations.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/tools/validate_repository.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/transformation/plan-0.1.schema.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/transformation/plan-0.2.schema.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/transformation/spss-syntax-frontend-0.1.schema.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/transformation/spss-syntax-frontend-0.2.schema.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/transformation/spss-syntax-frontend-0.3.schema.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/.github/workflows/ci.yml +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/.github/workflows/publish.yml +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/.gitignore +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/CHANGELOG.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/CONTRIBUTING.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/README.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/RELEASING.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/ROADMAP.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/VERSIONING.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/fixtures/LICENSE.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/fixtures/README.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/fixtures/core-numeric-string.sav +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/fixtures/dictionary-and-display.sav +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/fixtures/generate-fixtures.sps +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/fixtures/long-utf8-and-attributes.sav +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/fixtures/missing-rules.sav +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/fixtures/sets.sav +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/fixtures/weight-and-string-mr.sav +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/fixtures/zsav-compressed.zsav +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/in-place-transformation-0.1.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/in-place-transformation-0.2.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/spss-sav-zsav-1.0.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/spss-syntax-frontend-0.1.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/spss-syntax-frontend-0.2.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/sql-transformation-workflow-0.1.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/transformation-plan-0.1.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/conformance/transformation-plan-0.2.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/docs/architecture.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/docs/implementation-profiles/python-pyspssio-0.5.1.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/docs/mssql-dialect-roadmap.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/docs/spss-profile.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/docs/spss-sav-zsav-profile-1.0.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/docs/spss-syntax-frontend-profile-0.1.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/docs/spss-syntax-frontend-profile-0.2.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/docs/sql-transformation-workflow-profile-0.1.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/docs/transformation-plan-profile-0.1.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/docs/transformation-plan-profile-0.2.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/docs/transformation-plan-sql-binding-0.1.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/docs/transformation-plan-sql-binding-0.2.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/examples/basic-spss-mapping.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/examples/spss-syntax-transformation-0.2.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/examples/spss-syntax-transformation.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/examples/sql-transformation-workflow.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/pyproject.toml +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/sql/dialect-profile-baseline.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/sql/dialect-profiles.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/sql/dolt-adapter-declaration-schema.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/sql/dolt-adapter-declarations/README.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/sql/profile-capabilities.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/sql/schema-outline.sql +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/sql/server-version-policy.md +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/sql/transformation-plan-profile-schema.sql +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/sql/transformation-workflow-profile-schema.sql +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/src/openstatspec_specification/__init__.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/src/openstatspec_specification/dolt.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/tests/test_dolt_declarations.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/tools/validate_repository.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/transformation/plan-0.1.schema.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/transformation/plan-0.2.schema.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/transformation/spss-syntax-frontend-0.1.schema.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/transformation/spss-syntax-frontend-0.2.schema.json +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/__init__.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/api.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/cli.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/core/__init__.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/core/results.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/frontends/__init__.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/frontends/sas/.gitkeep +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/frontends/spss/__init__.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/frontends/spss/binding.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/frontends/spss/compiler.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/frontends/spss/execution.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/frontends/spss/syntax.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/frontends/stata/.gitkeep +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/spss/__init__.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/spss/dictionary.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/spss/raw_dictionary.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/sql/__init__.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/sql/capabilities.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/sql/catalog_api.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/sql/catalog_verification.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/sql/database_urls.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/sql/dolt_conformance.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/sql/inplace_transform.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/sql/normative.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/sql/workflow.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/transform/__init__.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/transform/errors.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/transform/plan.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/transform/schema.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/src/openstatspec/transform/validation.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/conformance.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_atomic_import.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_attribute_catalog.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_catalog_lifecycle.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_catalog_persistence_review.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_conditional_inplace_transform.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_document_round_trip.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_dolt_conformance.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_frontend_v03.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_inplace_transform.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_loss_reports.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_normative_catalog.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_official_conformance.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_pyspssio_catalog_authority.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_read_only_export.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_release_ref.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_review_transaction_boundary.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_sav_sqlite.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_spss_catalog_preflight.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_sql_services.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_sql_workflow.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_strict_catalog_review.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_transform_frontend.py +0 -0
- {openstatspec-0.9.0 → openstatspec-0.9.1}/tests/test_vls_compatible_names.py +0 -0
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this reference implementation are documented here.
|
|
4
4
|
|
|
5
|
+
## 0.9.1 - 2026-11-09
|
|
6
|
+
|
|
7
|
+
This patch release speeds up SAV import and export. Behavior, error codes and
|
|
8
|
+
the catalog contract are unchanged.
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Prove strict row limits column by column before falling back to the exact
|
|
13
|
+
row-by-row checks, which still run (and report the same first failing row)
|
|
14
|
+
whenever a column is not provably within limits.
|
|
15
|
+
- Convert imported frames and exported rows column-wise instead of cell by cell.
|
|
16
|
+
- Insert imported rows through the driver after preflight instead of
|
|
17
|
+
SQLAlchemy's per-row parameter pass.
|
|
18
|
+
- Declare the direct `numpy>=1.26` dependency (already required by pandas).
|
|
19
|
+
|
|
20
|
+
Local SQLite timings on a 50k x 200 SAV: import 29.2 s to 8.6 s, export
|
|
21
|
+
22.4 s to 17.4 s.
|
|
22
|
+
|
|
5
23
|
## 0.9.0 - 2026-09-10
|
|
6
24
|
|
|
7
25
|
This minor release adds the explicitly selected optional official SPSS Frontend
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: openstatspec
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.1
|
|
4
4
|
Summary: Reference adapter for the OpenStatSpec relational contract
|
|
5
5
|
Author: OpenStatSpec
|
|
6
6
|
License: Apache-2.0
|
|
7
7
|
Requires-Python: >=3.11
|
|
8
|
+
Requires-Dist: numpy>=1.26
|
|
8
9
|
Requires-Dist: openstatspec-pyspssio==0.5.1.post2
|
|
9
10
|
Requires-Dist: pandas>=2.2
|
|
10
11
|
Requires-Dist: rfc8785>=0.1.4
|
|
@@ -23,7 +24,7 @@ The reference Python implementation of the OpenStatSpec specification.
|
|
|
23
24
|
|
|
24
25
|
This package implements the specification; it does not define or extend it.
|
|
25
26
|
The normative model lives in the `OpenStatSpec/specification` repository.
|
|
26
|
-
Python 0.9.
|
|
27
|
+
Python 0.9.1 pins released specification `v0.5.0` at
|
|
27
28
|
`864e84479f554b8ee250ffed44c4dfb963750d4a` and selects SAV/ZSAV 1.0 with
|
|
28
29
|
`database_io_policy=openstatspec-database-io-v1`. It implements the explicitly
|
|
29
30
|
selected optional official SPSS Frontend 0.3 over unchanged Plan 0.1/0.2, not
|
|
@@ -4,7 +4,7 @@ The reference Python implementation of the OpenStatSpec specification.
|
|
|
4
4
|
|
|
5
5
|
This package implements the specification; it does not define or extend it.
|
|
6
6
|
The normative model lives in the `OpenStatSpec/specification` repository.
|
|
7
|
-
Python 0.9.
|
|
7
|
+
Python 0.9.1 pins released specification `v0.5.0` at
|
|
8
8
|
`864e84479f554b8ee250ffed44c4dfb963750d4a` and selects SAV/ZSAV 1.0 with
|
|
9
9
|
`database_io_policy=openstatspec-database-io-v1`. It implements the explicitly
|
|
10
10
|
selected optional official SPSS Frontend 0.3 over unchanged Plan 0.1/0.2, not
|
|
@@ -4,13 +4,13 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "openstatspec"
|
|
7
|
-
version = "0.9.
|
|
7
|
+
version = "0.9.1"
|
|
8
8
|
description = "Reference adapter for the OpenStatSpec relational contract"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
11
11
|
license = {text = "Apache-2.0"}
|
|
12
12
|
authors = [{name = "OpenStatSpec"}]
|
|
13
|
-
dependencies = ["SQLAlchemy>=2.0", "pandas>=2.2", "openstatspec-pyspssio==0.5.1.post2", "sqlglot>=30.14", "rfc8785>=0.1.4"]
|
|
13
|
+
dependencies = ["SQLAlchemy>=2.0", "pandas>=2.2", "numpy>=1.26", "openstatspec-pyspssio==0.5.1.post2", "sqlglot>=30.14", "rfc8785>=0.1.4"]
|
|
14
14
|
|
|
15
15
|
[project.optional-dependencies]
|
|
16
16
|
dev = ["pytest>=8"]
|
|
@@ -10,11 +10,11 @@ import hashlib
|
|
|
10
10
|
import os
|
|
11
11
|
import json
|
|
12
12
|
import errno
|
|
13
|
-
import math
|
|
14
13
|
import ctypes
|
|
15
14
|
from contextlib import ExitStack, contextmanager
|
|
16
15
|
from datetime import UTC, datetime
|
|
17
16
|
from functools import wraps
|
|
17
|
+
from operator import itemgetter
|
|
18
18
|
from pathlib import Path
|
|
19
19
|
from tempfile import mkstemp, TemporaryDirectory
|
|
20
20
|
from typing import Any, Callable
|
|
@@ -24,6 +24,7 @@ try: # POSIX locks let independent export processes share one publication gate.
|
|
|
24
24
|
except ImportError: # pragma: no cover - the supported CI/runtime is POSIX.
|
|
25
25
|
fcntl = None
|
|
26
26
|
|
|
27
|
+
import numpy as np
|
|
27
28
|
import pandas as pd
|
|
28
29
|
import pyspssio
|
|
29
30
|
|
|
@@ -206,18 +207,16 @@ def _pyspssio_missing_rules(encoded: str) -> dict[str, Any] | None:
|
|
|
206
207
|
|
|
207
208
|
|
|
208
209
|
def _rows(frame: pd.DataFrame, variables: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
|
209
|
-
|
|
210
|
-
for
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
if
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
records.append(output)
|
|
220
|
-
return records
|
|
210
|
+
columns = []
|
|
211
|
+
for item in variables:
|
|
212
|
+
series = frame[item["source_name"]]
|
|
213
|
+
empty = None if item["storage_kind"] == "numeric" else ""
|
|
214
|
+
columns.append([
|
|
215
|
+
empty if missing else value
|
|
216
|
+
for value, missing in zip(series.tolist(), series.isna().tolist())
|
|
217
|
+
])
|
|
218
|
+
names = [item["physical_name"] for item in variables]
|
|
219
|
+
return [dict(zip(names, values)) for values in zip(*columns)]
|
|
221
220
|
|
|
222
221
|
|
|
223
222
|
def inspect_sav(source: str | Path) -> dict[str, Any]:
|
|
@@ -586,15 +585,14 @@ def export_sav_dataset(
|
|
|
586
585
|
raise UnsupportedOperationError("Export requires explicit allow_loss for: " + ", ".join(rejected))
|
|
587
586
|
|
|
588
587
|
frame = pd.DataFrame(
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
],
|
|
588
|
+
{
|
|
589
|
+
variable["source_name"]: (
|
|
590
|
+
# Preflight already proved numeric cells are binary64 or None.
|
|
591
|
+
np.array(column, dtype=float) if variable["storage_kind"] == "numeric" else column
|
|
592
|
+
)
|
|
593
|
+
for variable in variables
|
|
594
|
+
for column in [list(map(itemgetter(variable["physical_name"]), rows))]
|
|
595
|
+
},
|
|
598
596
|
columns=[variable["source_name"] for variable in variables],
|
|
599
597
|
)
|
|
600
598
|
publication_state: dict[str, Any] = {"published": False}
|
|
@@ -8,9 +8,12 @@ from collections.abc import Iterable, Mapping
|
|
|
8
8
|
from dataclasses import dataclass
|
|
9
9
|
import math
|
|
10
10
|
from numbers import Real
|
|
11
|
+
from operator import itemgetter
|
|
11
12
|
from typing import Any
|
|
12
13
|
from urllib.parse import urlparse
|
|
13
14
|
|
|
15
|
+
import numpy as np
|
|
16
|
+
|
|
14
17
|
from ..core import UnsupportedOperationError
|
|
15
18
|
|
|
16
19
|
|
|
@@ -125,8 +128,12 @@ def preflight(
|
|
|
125
128
|
*,
|
|
126
129
|
rows: Iterable[Mapping[str, Any]] | None = None,
|
|
127
130
|
require_canonical_mapping: bool = True,
|
|
128
|
-
) ->
|
|
129
|
-
"""Validate strict target capabilities before any source dataset is created.
|
|
131
|
+
) -> bool:
|
|
132
|
+
"""Validate strict target capabilities before any source dataset is created.
|
|
133
|
+
|
|
134
|
+
Returns True only when every cell was proven to be float/None (numeric) or
|
|
135
|
+
str, so callers may bypass per-value bind processing.
|
|
136
|
+
"""
|
|
130
137
|
variables = None if isinstance(variables_or_count, int) else list(variables_or_count)
|
|
131
138
|
variable_count = variables_or_count if isinstance(variables_or_count, int) else len(variables)
|
|
132
139
|
if variable_count > profile.max_source_variables:
|
|
@@ -140,7 +147,7 @@ def preflight(
|
|
|
140
147
|
max_physical=profile.max_source_variables + 1,
|
|
141
148
|
)
|
|
142
149
|
if variables is None:
|
|
143
|
-
return
|
|
150
|
+
return False
|
|
144
151
|
|
|
145
152
|
used = {"__case_ordinal"}
|
|
146
153
|
source_names: set[str] = set()
|
|
@@ -211,7 +218,11 @@ def preflight(
|
|
|
211
218
|
f"{profile.name} permits {profile.max_row_bytes}.",
|
|
212
219
|
declared_row_bytes=declared_row_bytes, maximum=profile.max_row_bytes,
|
|
213
220
|
)
|
|
214
|
-
|
|
221
|
+
rows = list(rows or ())
|
|
222
|
+
if not rows or _rows_within_limits(profile, variables, rows):
|
|
223
|
+
return True
|
|
224
|
+
# Slow path only reports the first failing row in row-major order.
|
|
225
|
+
for row_ordinal, row in enumerate(rows, start=1):
|
|
215
226
|
row_bytes = 8
|
|
216
227
|
for variable in variables:
|
|
217
228
|
if variable.get("storage_kind") == "numeric":
|
|
@@ -310,6 +321,54 @@ def preflight(
|
|
|
310
321
|
row_ordinal=row_ordinal, statement_bytes=statement_bytes,
|
|
311
322
|
maximum=profile.max_statement_bytes,
|
|
312
323
|
)
|
|
324
|
+
return False
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
def _rows_within_limits(
|
|
328
|
+
profile: SqlProfile, variables: list[Mapping[str, Any]],
|
|
329
|
+
rows: list[Mapping[str, Any]],
|
|
330
|
+
) -> bool:
|
|
331
|
+
"""Column-wise proof that the row-by-row checks in preflight cannot fail.
|
|
332
|
+
|
|
333
|
+
Per-column maxima bound every row's row and statement size from above, so
|
|
334
|
+
True means no row exceeds a limit; False defers to the exact slow path.
|
|
335
|
+
"""
|
|
336
|
+
row_bytes, statement_bytes = 8, 32
|
|
337
|
+
for variable in variables:
|
|
338
|
+
name = str(variable["physical_name"])
|
|
339
|
+
try:
|
|
340
|
+
column = list(map(itemgetter(name), rows))
|
|
341
|
+
except KeyError:
|
|
342
|
+
return False
|
|
343
|
+
if variable.get("storage_kind") == "numeric":
|
|
344
|
+
if not set(map(type, column)) <= _PLAIN_NUMERIC_TYPES:
|
|
345
|
+
return False
|
|
346
|
+
values = np.array(column, dtype=float) # None becomes NaN
|
|
347
|
+
if np.isinf(values).any() or np.isnan(values).sum() != column.count(None):
|
|
348
|
+
return False
|
|
349
|
+
row_bytes += 8
|
|
350
|
+
statement_bytes += 24
|
|
351
|
+
continue
|
|
352
|
+
if set(map(type, column)) != {str}:
|
|
353
|
+
return False
|
|
354
|
+
try:
|
|
355
|
+
longest = max(map(len, map(str.encode, column)))
|
|
356
|
+
except UnicodeEncodeError:
|
|
357
|
+
return False
|
|
358
|
+
if longest > profile.max_text_value_bytes:
|
|
359
|
+
return False
|
|
360
|
+
row_bytes += 20 if profile.name in MYSQL_WIRE_PROFILES else longest
|
|
361
|
+
statement_bytes += longest + 8
|
|
362
|
+
return (
|
|
363
|
+
(profile.max_row_bytes is None or row_bytes <= profile.max_row_bytes)
|
|
364
|
+
and (
|
|
365
|
+
profile.max_statement_bytes is None
|
|
366
|
+
or statement_bytes <= profile.max_statement_bytes
|
|
367
|
+
)
|
|
368
|
+
)
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
_PLAIN_NUMERIC_TYPES = {float, type(None)}
|
|
313
372
|
|
|
314
373
|
|
|
315
374
|
def _row_storage_bytes(profile: SqlProfile, variable: Mapping[str, Any]) -> int:
|
|
@@ -760,10 +760,24 @@ def _bounded_batches(
|
|
|
760
760
|
maximum_statement_bytes: int | None,
|
|
761
761
|
) -> Iterable[list[Mapping[str, Any]]]:
|
|
762
762
|
"""Partition rows without exceeding the profile's statement payload budget."""
|
|
763
|
+
if maximum_statement_bytes is None:
|
|
764
|
+
rows = list(rows)
|
|
765
|
+
if rows:
|
|
766
|
+
yield rows
|
|
767
|
+
return
|
|
768
|
+
variables = list(variables)
|
|
769
|
+
strings = [
|
|
770
|
+
str(variable["physical_name"]) for variable in variables
|
|
771
|
+
if variable.get("storage_kind") != "numeric"
|
|
772
|
+
]
|
|
773
|
+
# Same arithmetic as statement_payload_bytes, with numeric widths hoisted.
|
|
774
|
+
fixed_size = 32 + 24 * (len(variables) - len(strings)) + 8 * len(strings)
|
|
763
775
|
batch: list[Mapping[str, Any]] = []
|
|
764
776
|
size = 0
|
|
765
777
|
for row in rows:
|
|
766
|
-
row_size =
|
|
778
|
+
row_size = fixed_size + sum(
|
|
779
|
+
len(str(row.get(name, "")).encode("utf-8")) for name in strings
|
|
780
|
+
)
|
|
767
781
|
if (
|
|
768
782
|
batch and maximum_statement_bytes is not None
|
|
769
783
|
and size + row_size > maximum_statement_bytes
|
|
@@ -789,6 +803,9 @@ def _canonicalize_database_numeric_rows(
|
|
|
789
803
|
normalized = []
|
|
790
804
|
for source in rows:
|
|
791
805
|
row = dict(source)
|
|
806
|
+
if set(map(type, row.values())) <= _PLAIN_ROW_VALUE_TYPES:
|
|
807
|
+
normalized.append(row)
|
|
808
|
+
continue
|
|
792
809
|
for name in numeric_names:
|
|
793
810
|
if isinstance(row.get(name), Decimal) and row[name].is_finite():
|
|
794
811
|
row[name] = float(row[name])
|
|
@@ -796,6 +813,9 @@ def _canonicalize_database_numeric_rows(
|
|
|
796
813
|
return normalized
|
|
797
814
|
|
|
798
815
|
|
|
816
|
+
_PLAIN_ROW_VALUE_TYPES = {float, int, str, bool, bytes, type(None)}
|
|
817
|
+
|
|
818
|
+
|
|
799
819
|
def data_table_name(dataset_id: str) -> str:
|
|
800
820
|
stem = _IDENTIFIER.sub("_", dataset_id).strip("_").lower() or "dataset"
|
|
801
821
|
return f"data_{stem[:48]}"
|
|
@@ -851,7 +871,7 @@ def create_wide_dataset(
|
|
|
851
871
|
fidelity_events = tuple(fidelity_events)
|
|
852
872
|
source_rows = _canonicalize_database_numeric_rows(rows, variables)
|
|
853
873
|
try:
|
|
854
|
-
preflight(profile, variables, rows=source_rows)
|
|
874
|
+
plain_rows = preflight(profile, variables, rows=source_rows)
|
|
855
875
|
validate_spss_catalog(
|
|
856
876
|
variables,
|
|
857
877
|
case_weight_variable=case_weight_variable,
|
|
@@ -962,10 +982,21 @@ def create_wide_dataset(
|
|
|
962
982
|
),
|
|
963
983
|
)
|
|
964
984
|
if source_rows:
|
|
985
|
+
# Plain rows hold only float/None and str, so the only bind
|
|
986
|
+
# processor (SQLite to_float) is a no-op: hand them straight to
|
|
987
|
+
# the driver. Anything else (e.g. exact ints) keeps SQLAlchemy.
|
|
988
|
+
compiled = insert(data_table).compile(dialect=connection.dialect)
|
|
989
|
+
keys = compiled.positiontup
|
|
965
990
|
for batch in _bounded_batches(
|
|
966
991
|
source_rows, variables, profile.max_statement_bytes,
|
|
967
992
|
):
|
|
968
|
-
|
|
993
|
+
if not plain_rows:
|
|
994
|
+
connection.execute(insert(data_table), batch)
|
|
995
|
+
continue
|
|
996
|
+
connection.exec_driver_sql(compiled.string, (
|
|
997
|
+
[tuple(map(row.__getitem__, keys)) for row in batch]
|
|
998
|
+
if keys else batch
|
|
999
|
+
))
|
|
969
1000
|
finish_normative_operation(
|
|
970
1001
|
connection, normative, operation_id=operation_id,
|
|
971
1002
|
status="succeeded",
|
|
@@ -42,7 +42,7 @@ def test_cli_import_inspect_validate_and_export_emit_json(tmp_path, capsys) -> N
|
|
|
42
42
|
|
|
43
43
|
def test_capability_matrix_is_public_and_cli_matches_engine_boundary(capsys) -> None:
|
|
44
44
|
matrix = openstatspec.capability_matrix()
|
|
45
|
-
assert matrix["adapter_version"] == "0.9.
|
|
45
|
+
assert matrix["adapter_version"] == "0.9.1"
|
|
46
46
|
assert matrix["database_io_policy"] == "openstatspec-database-io-v1"
|
|
47
47
|
assert matrix["specification_status"] == "released"
|
|
48
48
|
assert matrix["specification_release"] == "v0.5.0"
|
|
@@ -752,3 +752,46 @@ def test_generated_data_table_identifier_uses_effective_limit() -> None:
|
|
|
752
752
|
assert error.value.details["reason"] == "identifier_limit"
|
|
753
753
|
assert error.value.details["role"] == "physical data-table identifier"
|
|
754
754
|
assert error.value.details["maximum"] == 5
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
def test_column_preflight_fast_path_agrees_with_row_checks():
|
|
758
|
+
from openstatspec.sql.profiles import _rows_within_limits
|
|
759
|
+
|
|
760
|
+
variables = [
|
|
761
|
+
{"source_name": "q", "physical_name": "q", "ordinal": 1, "storage_kind": "numeric"},
|
|
762
|
+
{"source_name": "s", "physical_name": "s", "ordinal": 2, "storage_kind": "string", "string_width": 8},
|
|
763
|
+
]
|
|
764
|
+
plain = [{"q": 1.0, "s": "Pärnu"}, {"q": None, "s": ""}]
|
|
765
|
+
assert _rows_within_limits(MYSQL, variables, plain)
|
|
766
|
+
preflight(MYSQL, variables, rows=plain)
|
|
767
|
+
# Anything not provably safe falls back to the exact row-major checks.
|
|
768
|
+
for bad in ({"q": float("inf"), "s": ""}, {"q": True, "s": ""}, {"q": 1.0, "s": None}, {"s": ""}):
|
|
769
|
+
assert not _rows_within_limits(MYSQL, variables, [*plain, bad])
|
|
770
|
+
with pytest.raises(UnsupportedOperationError):
|
|
771
|
+
preflight(MYSQL, variables, rows=[*plain, bad])
|
|
772
|
+
too_long = [{"q": 1.0, "s": "x" * (MYSQL.max_text_value_bytes + 1)}]
|
|
773
|
+
assert not _rows_within_limits(MYSQL, variables, too_long)
|
|
774
|
+
assert not _rows_within_limits(MYSQL, variables, [{"q": 1.0, "s": "\ud800"}])
|
|
775
|
+
# Exact ints are valid but not plain, so callers keep bind processing.
|
|
776
|
+
assert preflight(MYSQL, variables, rows=[*plain, {"q": 2**63, "s": ""}]) is False
|
|
777
|
+
with pytest.raises(UnsupportedOperationError, match="binary64"):
|
|
778
|
+
preflight(MYSQL, variables, rows=[*plain, {"q": 2**53 + 1, "s": ""}])
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
def test_import_stores_exact_integer_cells_as_binary64(tmp_path):
|
|
782
|
+
from openstatspec.sql.wide import create_wide_dataset
|
|
783
|
+
import sqlite3
|
|
784
|
+
|
|
785
|
+
database = f"sqlite:///{tmp_path / 'ints.sqlite'}"
|
|
786
|
+
variables = [{
|
|
787
|
+
"source_name": "q", "physical_name": "q", "ordinal": 1,
|
|
788
|
+
"storage_kind": "numeric", "format": "F20.0",
|
|
789
|
+
}]
|
|
790
|
+
create_wide_dataset(
|
|
791
|
+
database_url=database, dataset_id="ints", source_name="ints.sav",
|
|
792
|
+
source_format="SAV", rows=[{"q": 2**63}, {"q": None}], variables=variables,
|
|
793
|
+
)
|
|
794
|
+
stored = sqlite3.connect(tmp_path / "ints.sqlite").execute(
|
|
795
|
+
"select q from data_ints order by __case_ordinal"
|
|
796
|
+
).fetchall()
|
|
797
|
+
assert stored == [(float(2**63),), (None,)]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/.github/workflows/ci.yml
RENAMED
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/.github/workflows/release.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/fixtures/LICENSE.md
RENAMED
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/fixtures/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/conformance/fixtures/sets.sav
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/database-io-policy-v1.md
RENAMED
|
File without changes
|
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/mssql-dialect-roadmap.md
RENAMED
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/docs/spss-frontend-roadmap.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/examples/basic-spss-mapping.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/sql/dialect-profiles.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/sql/profile-capabilities.md
RENAMED
|
File without changes
|
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/sql/server-version-policy.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/tests/test_dolt_declarations.py
RENAMED
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification/tools/validate_repository.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openstatspec-0.9.0 → openstatspec-0.9.1}/openstatspec-specification-package/CONTRIBUTING.md
RENAMED
|
File without changes
|