Skip to content

fix: datatype_is_logically_equal for dictionaries#20153

Open
dd-annarose wants to merge 1 commit intoapache:mainfrom
dd-annarose:annarose/dict-coercion
Open

fix: datatype_is_logically_equal for dictionaries#20153
dd-annarose wants to merge 1 commit intoapache:mainfrom
dd-annarose:annarose/dict-coercion

Conversation

@dd-annarose
Copy link

Which issue does this PR close?

When checking logical equivalence with Dictionary<_, Utf8> and Utf8View, the response was false which is not what we expect (logical equivalence should be a transitive property).

What changes are included in this PR?

This PR introduces a test and a fix. The test fails without the fix. The fix is simply calling datatype_is_logically_equal again on the v1 and othertype when called with Dictionary<K1, V1> and othertype.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@github-actions github-actions bot added the common Related to common crate label Feb 4, 2026
Copy link
Member

@notfilippo notfilippo left a comment

Choose a reason for hiding this comment

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

Makes sense to me! Thanks :)

Copy link
Contributor

@gabotechs gabotechs left a comment

Choose a reason for hiding this comment

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

Looks good! thanks @dd-annarose

@dd-annarose dd-annarose force-pushed the annarose/dict-coercion branch from df92e66 to 321b285 Compare February 4, 2026 16:22
@dd-annarose dd-annarose force-pushed the annarose/dict-coercion branch from 1a0c600 to 09c29d7 Compare February 4, 2026 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to common crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants