Skip to content

Fix dtype mismatch in FileStatsLayoutReader for stat scalars#7639

Open
brainhart wants to merge 1 commit intovortex-data:developfrom
brainhart:fix-stat-dtype-mismatch
Open

Fix dtype mismatch in FileStatsLayoutReader for stat scalars#7639
brainhart wants to merge 1 commit intovortex-data:developfrom
brainhart:fix-stat-dtype-mismatch

Conversation

@brainhart
Copy link
Copy Markdown
Contributor

Summary

Use the stat's own dtype (e.g. u64 for NullCount) rather than the field dtype when constructing stat scalars in stats_ref. This fixes IS NULL pruning on nullable timestamp columns which previously failed with a dtype mismatch.

Testing

Added regression test

Use the stat's own dtype (e.g. u64 for NullCount) rather than the field
dtype when constructing stat scalars in stats_ref. This fixes IS NULL
pruning on nullable timestamp columns which previously failed with a
dtype mismatch.

Add regression test for is_null pruning on a nullable timestamp column.

Signed-off-by: Brian Hart <brian@brainhart.dev>
@brainhart brainhart force-pushed the fix-stat-dtype-mismatch branch from f9b3546 to 889b25f Compare April 26, 2026 01:47
Copy link
Copy Markdown
Contributor

@robert3005 robert3005 left a comment

Choose a reason for hiding this comment

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

I have also seen this in #7589

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants