Skip to content

Adjust Variant size expectation for s390x architecture#10027

Open
frantisekz wants to merge 1 commit into
apache:mainfrom
frantisekz:s390x_parquet
Open

Adjust Variant size expectation for s390x architecture#10027
frantisekz wants to merge 1 commit into
apache:mainfrom
frantisekz:s390x_parquet

Conversation

@frantisekz
Copy link
Copy Markdown

Which issue does this PR close?

Rationale for this change

The Variant enum has a different size on s390x (72 bytes) compared to other 64-bit architectures (80 bytes) due to architecture-specific alignment and padding requirements.

What changes are included in this PR?

This change adds a conditional compilation check to expect 72 bytes on s390x while maintaining the existing 80-byte expectation for other 64-bit platforms. This ensures the size check passes on s390x without compromising the performance validation on other architectures.

Are these changes tested?

Build-time test only

Are there any user-facing changes?

N/A

The Variant enum has a different size on s390x (72 bytes) compared to
other 64-bit architectures (80 bytes) due to architecture-specific
alignment and padding requirements.

This change adds a conditional compilation check to expect 72 bytes
on s390x while maintaining the existing 80-byte expectation for other
64-bit platforms. This ensures the size check passes on s390x without
compromising the performance validation on other architectures.

Signed-off-by: František Zatloukal <fzatlouk@redhat.com>
@github-actions github-actions Bot added the parquet-variant parquet-variant* crates label May 27, 2026
Copy link
Copy Markdown
Member

@klion26 klion26 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the contribution!

Copy link
Copy Markdown
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.

Thank you @frantisekz and @klion26

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

Labels

parquet-variant parquet-variant* crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

parquet-variant build might fail on s390x

3 participants