Skip to content

feat: remove visions dependency - #1887

Merged
fabclmnt merged 8 commits into
developfrom
feat/remove_visions_dependency
Nov 4, 2026
Merged

fabclmnt merged 8 commits into
developfrom
feat/remove_visions_dependency

Conversation

@fabclmnt

@fabclmnt fabclmnt commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

This PR removes the dependency on visions to reduce external maintenance overhead and avoid potential licensing compatibility issues.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Tracing can mutate inference state and alter type-selection paths, while the date checks misclassify columns containing missing-date strings, losing date statistics and missing-value counts.

2 open issues
What changed in this PR

Replaces visions with a built-in type system to reduce dependency maintenance and licensing concerns while supporting profiling and custom types.

Changes:

  • Adds deterministic type precedence, inference tracing, and single-pass inference and casting.
  • Migrates report handlers and tests to the built-in types, with new reference data and snapshot tooling.
  • Removes the dependency and updates type-inference documentation.
File Description
tests/​unit/​typeset_test_utils.py Adds local membership, inference, and conversion helpers.
tests/​unit/​typeset_sequences.py Adds independent reference series.
tests/​unit/​test_utils.py Removes the obsolete visions workaround.
tests/​unit/​test_typeset_precedence.py Tests precedence, structure, and handler inheritance.
tests/​unit/​test_typeset_default.py Migrates default typeset tests to local helpers.
tests/​unit/​test_typeset_custom.py Migrates custom typeset tests to local helpers.
tests/​typeset_snapshot.py Adds inference snapshot recording and comparison.
src/​data_profiling/​profile_report.py Adopts the built-in typeset interface.
src/​data_profiling/​model/​typeset.py Defines built-in profiling types and precedence.
src/​data_profiling/​model/​typeset_relations.py Uses local null handling and revises date inference.
src/​data_profiling/​model/​typeset_base.py Implements relations, traversal, casting, and tracing.
src/​data_profiling/​model/​summary.py Updates summary interfaces to built-in typesets.
src/​data_profiling/​model/​summarizer.py Updates summarizer type interfaces.
src/​data_profiling/​model/​spark/​summary_spark.py Uses schema-based Spark type detection.
src/​data_profiling/​model/​pandas/​summary_pandas.py Combines inference and casting into one traversal.
src/​data_profiling/​model/​handler.py Composes handlers through the built-in type hierarchy.
src/​data_profiling/​model/​describe.py Updates typeset annotations and documentation.
src/​data_profiling/​expectations_report.py Migrates expectation handlers and validates typeset availability.
pyproject.toml Removes the visions dependency.
docs/​reference/​history.md Updates project history and type-system attribution.
docs/​getting-started/​concepts.md Documents built-in types, precedence, and tracing.
docs/​features/​sensitive_data.md Shows explicit text typing for numeric-looking strings.
docs/​features/​metadata.md Updates schema-inference guidance.

Review effort: Balanced

for relation in self.relations_from(node, inferential):
if relation.type in path:
continue
if relation.is_relation(series, state):
@fabclmnt
fabclmnt merged commit 9352984 into develop Nov 4, 2026
8 checks passed
@fabclmnt
fabclmnt deleted the feat/remove_visions_dependency branch November 4, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants