Skip to content

Conversation

@Weijun-H
Copy link
Member

@Weijun-H Weijun-H commented Jul 1, 2025

Which issue does this PR close?

Rationale for this change

serde_json is not always needed for all use cases of parquet-variant. Making it optional reduces unnecessary dependencies and allows for more lightweight builds.

What changes are included in this PR?

serde_json is not the dependency of parquet-variant by default

Are these changes tested?

Tests were added for both default and --all-features configurations.

Are there any user-facing changes?

If there are user-facing changes then we may require documentation to be updated before approving the PR.

If there are any breaking changes to public APIs, please call them out.

@github-actions github-actions bot added the parquet Changes to the parquet crate label Jul 1, 2025
@Weijun-H Weijun-H force-pushed the 7775-optional-serde-json branch from 314ba88 to 003806e Compare July 1, 2025 20:34
@Weijun-H Weijun-H changed the title feat: Add optional serde_json dependency feat: Add optional serde_json dependency of parquet-variant Jul 1, 2025
@Weijun-H Weijun-H changed the title feat: Add optional serde_json dependency of parquet-variant [Variant] feat: Add optional serde_json dependency of parquet-variant Jul 1, 2025
@alamb
Copy link
Contributor

alamb commented Jul 3, 2025

Can we potentially hold off on this PR until we get #7783 from @harshmotw-db merged?

@alamb
Copy link
Contributor

alamb commented Jul 3, 2025

I have an alternate proposal, let me know what you think:

@Weijun-H
Copy link
Member Author

Weijun-H commented Jul 3, 2025

I have an alternate proposal, let me know what you think:

* [[Variant] Introduce `parquet-variant-json` crate #7862](https://github.com/apache/arrow-rs/pull/7862)

Nice approach, it should have a separate case. @alamb 👍

@alamb alamb closed this in 9246872 Jul 8, 2025
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.

[Variant] make serde_json an optional dependency of parquet-variant

2 participants