Skip to content

Conversation

@gruuya
Copy link
Contributor

@gruuya gruuya commented Jan 6, 2026

Which issue does this PR close?

Rationale for this change

Don't require strict equality for nested fields (including inner field name/metadata), just require that nested data types are logically equivalent.

What changes are included in this PR?

Use a.equals_datatype(b) instead of a == b at the start of LevelInfoBuilder::types_compatible.

Are these changes tested?

Yes.

Are there any user-facing changes?

@github-actions github-actions bot added the parquet Changes to the parquet crate label Jan 6, 2026
@gruuya
Copy link
Contributor Author

gruuya commented Jan 6, 2026

cc @albertlockett this overlaps/extends some of your recent work.

Copy link
Contributor

@albertlockett albertlockett 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 @gruuya

@gruuya gruuya changed the title feat: relax type compatility check in parquet ArrowWriter feat(parquet): relax type compatility check in parquet ArrowWriter Jan 6, 2026
@tustvold
Copy link
Contributor

tustvold commented Jan 6, 2026

I don't think it does, but can you confirm this doesn't conflict with #9077

@gruuya
Copy link
Contributor Author

gruuya commented Jan 6, 2026

I don't think it does, but can you confirm this doesn't conflict with #9077

I think it doesn't. To confirm i checked out your cleanup-casting branch, applied my changes from this PR on top of it, and (the modified) arrow_writer_test_type_compatibility still passes.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

@alamb alamb merged commit 2b179b8 into apache:main Jan 7, 2026
17 checks passed
@alamb
Copy link
Contributor

alamb commented Jan 7, 2026

Thanks again

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

Labels

parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[parquet] further relax LevelInfoBuilder::types_compatible for ArrowWriter

4 participants