Skip to content

chore: panic on nullable top-level struct#3550

Merged
blaginin merged 5 commits into
vortex-data:developfrom
blaginin:db/assert-on-nullable-struct-write
Jun 17, 2025
Merged

chore: panic on nullable top-level struct#3550
blaginin merged 5 commits into
vortex-data:developfrom
blaginin:db/assert-on-nullable-struct-write

Conversation

@blaginin
Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: blaginin <dima@spiraldb.com>
@blaginin blaginin force-pushed the db/assert-on-nullable-struct-write branch from 0feb5e6 to 2fc7a3d Compare June 17, 2025 12:34
Signed-off-by: blaginin <dima@spiraldb.com>
Copy link
Copy Markdown
Contributor

@joseph-isaacs joseph-isaacs left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +45 to +51
Some(struct_dtype) => {
if dtype.nullability() == Nullability::Nullable {
vortex_panic!(
"FileStatsAccumulator does not support nullable top-level structs, got: {}. Use Validity::NonNullable",
dtype
);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe add a comment say this is a temporary fix until we support files with top level nullability

@blaginin blaginin changed the title Panic on nullable top-level struct chore: panic on nullable top-level struct Jun 17, 2025
@blaginin blaginin added the changelog/chore A trivial change label Jun 17, 2025
@blaginin blaginin self-assigned this Jun 17, 2025
blaginin added 3 commits June 17, 2025 16:05
Signed-off-by: blaginin <dima@spiraldb.com>
Signed-off-by: blaginin <dima@spiraldb.com>
Signed-off-by: blaginin <dima@spiraldb.com>
@blaginin blaginin merged commit 1530022 into vortex-data:develop Jun 17, 2025
33 checks passed
mwlon pushed a commit to mwlon/vortex that referenced this pull request Jul 4, 2025
Signed-off-by: blaginin <dima@spiraldb.com>
Co-authored-by: Dmitrii Blaginin <dima@blaginin.me>
Signed-off-by: mwlon <m.w.loncaric@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants