Skip to content

Core: Extend V4 DeletionVector with key_metadata field - #17438

Open
gaborkaszab wants to merge 1 commit into
apache:mainfrom
gaborkaszab:main_deletionvector_keymetadata
Open

Core: Extend V4 DeletionVector with key_metadata field#17438
gaborkaszab wants to merge 1 commit into
apache:mainfrom
gaborkaszab:main_deletionvector_keymetadata

Conversation

@gaborkaszab

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the core label Jul 30, 2026
"Number of set bits (deleted rows) in the vector");
Types.NestedField KEY_METADATA =
Types.NestedField.optional(
149,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ColumnFiles PR takes field IDs 158-169. I see 149 is free

}

@Override
public boolean equals(Object other) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I haven't added key_metadata here. I think we should rather drop equals() and hashCode. We agreed such metadata structs shouldn't override these. Will remove them in a follow-up PR.

@anoopj anoopj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we also update the spec PR @amogh-jahagirdar is working on and the AMT proposal doc?

long cardinality();

/** Returns encryption key metadata, or null if the file is not encrypted. */
ByteBuffer keyMetadata();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we need to update the adapter TrackedDVDeleteFile to return the key metadata? (right now it just hard returns null).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I initially figured I just take care of the schema and structure changes and deal with the rest on top later. Since the change in the adapter is minimal, I covered it too as you suggested. Thanks, @anoopj !

@gaborkaszab
gaborkaszab force-pushed the main_deletionvector_keymetadata branch from 95fb136 to 908a23a Compare July 31, 2026 10:37

@gaborkaszab gaborkaszab left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for taking a look, @anoopj !

@amogh-jahagirdar would you mind checking this to be in sync with the spec changes you have in mind?

long cardinality();

/** Returns encryption key metadata, or null if the file is not encrypted. */
ByteBuffer keyMetadata();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I initially figured I just take care of the schema and structure changes and deal with the rest on top later. Since the change in the adapter is minimal, I covered it too as you suggested. Thanks, @anoopj !

@gaborkaszab
gaborkaszab requested a review from anoopj July 31, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants