-
Notifications
You must be signed in to change notification settings - Fork 80
feat: add dictionary type for dynamic type #451
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
# Conflicts: # src/record/dynamic/value/mod.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some error handling nits, we can handle the panics throughout the code
DataType::UInt32 => dict_builder!(UInt32Type), | ||
DataType::UInt64 => dict_builder!(UInt64Type), | ||
_ => { | ||
panic!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can error handle this instead of panicking, more clear. Maybe we can add a Error::Unimplemented to the record 'error.rs' file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is copied from arrow make_builder
. Arrow dictionary key type only supports these key types original, I think it's ok to panic here. If you think it's better to do error handling here, I think we can submit another PR to modify the upper function signature.
ValueError::InvalidConversion("Time64Microsecond cast failed".into()) | ||
})?; | ||
Ok(ValueRef::Time64(arr.value(index), TimeUnit::Second)) | ||
Ok(ValueRef::Time64(arr.value(index), TimeUnit::Microsecond)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
solve the bug mentioned in #460
Is this good to go? @ethe |
What changes are included in this PR?
Add dictionary type for dynamic type.