Skip to content

Fix reference MapType dataset comparisons - #1466

Open
mattfaltyn wants to merge 2 commits into
databrickslabs:mainfrom
mattfaltyn:fix/compare-datasets-reference-maptype
Open

Fix reference MapType dataset comparisons#1466
mattfaltyn wants to merge 2 commits into
databrickslabs:mainfrom
mattfaltyn:fix/compare-datasets-reference-maptype

Conversation

@mattfaltyn

@mattfaltyn mattfaltyn commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Exclude shared columns from compare_datasets when either the source or reference schema declares them as MapType.
  • Add mirrored integration coverage for source-only and reference-only MapType columns.

This keeps dataset comparison symmetric and restores the documented behavior that MapType comparisons are skipped automatically.

Linked issues

Resolves #1465

Tests

  • manually tested
  • added unit tests
  • added integration tests
  • added end-to-end tests
  • added performance tests

Local validation:

  • make fmt
  • make lint
  • make test — 2,327 passed

The focused integration cases require the repository's Databricks workspace test environment, which is not configured locally. Per the fork-contribution workflow, a maintainer must approve the standard workflows and trigger the integration and end-to-end suites.

Documentation and Demos

  • added/updated demos
  • added/updated docs
  • added/updated agent skills

No documentation change is needed: the existing compare_datasets documentation already states that any MapType column comparison is skipped automatically. This PR aligns the implementation with that contract.

@mattfaltyn
mattfaltyn marked this pull request as ready for review August 13, 2026 07:49
@mattfaltyn
mattfaltyn requested a review from a team as a code owner August 13, 2026 07:49
@mattfaltyn
mattfaltyn requested review from pratikk-databricks and removed request for a team August 13, 2026 07:49

@ghanse ghanse left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This looks good overall.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved to Merge When PR is reviewed and approved. To be merged once all tests pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: compare_datasets does not skip reference-only MapType columns

2 participants