Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dict null code can be any index instead of just 0 #2208

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from

Conversation

robert3005
Copy link
Member

@robert3005 robert3005 commented Feb 3, 2025

No description provided.

@robert3005 robert3005 changed the title Dict null code can be any index instead of just 0 [WIP] Dict null code can be any index instead of just 0 Feb 3, 2025
@robert3005 robert3005 changed the title [WIP] Dict null code can be any index instead of just 0 Dict null code can be any index instead of just 0 Feb 3, 2025
@robert3005 robert3005 enabled auto-merge (squash) February 3, 2025 16:53
@joseph-isaacs
Copy link
Member

Do we only allow a single null value in each dict?

@robert3005
Copy link
Member Author

For now yes, I guess that's what your pr will change?


Ok(true)
}

fn validity_mask(&self, array: &DictArray) -> VortexResult<Mask> {
if array.dtype().is_nullable() {
if let Some(null_code) = array.null_code() {
Copy link
Member

Choose a reason for hiding this comment

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

I think that values can have more than one null value in the values?

@joseph-isaacs
Copy link
Member

Do we either note that in docs or check it?

@gatesn
Copy link
Contributor

gatesn commented Feb 3, 2025

Just so we know, this isn't zero-copy from arrow. there's no reason dictionary values need to be unique....

@robert3005
Copy link
Member Author

Correct, the existing one isn’t either. I was assuming that comes in a future pr

@gatesn
Copy link
Contributor

gatesn commented Feb 3, 2025

Well the existing and this thing assume there's only one null code

@robert3005
Copy link
Member Author

indeed, this was meant to unwind #2206

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.

3 participants