Skip to content

Conversation

crwen
Copy link
Contributor

@crwen crwen commented Aug 11, 2025

What changes are included in this PR?

Add dictionary type for dynamic type.

Copy link

codecov bot commented Aug 11, 2025

@crwen crwen requested a review from ethe August 11, 2025 12:03
Copy link
Collaborator

@jonathanc-n jonathanc-n left a 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!(
Copy link
Collaborator

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

Copy link
Contributor Author

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.

@crwen crwen requested a review from ethe August 14, 2025 04:12
ValueError::InvalidConversion("Time64Microsecond cast failed".into())
})?;
Ok(ValueRef::Time64(arr.value(index), TimeUnit::Second))
Ok(ValueRef::Time64(arr.value(index), TimeUnit::Microsecond))
Copy link
Contributor Author

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

@crwen crwen requested a review from ethe August 14, 2025 06:55
@crwen
Copy link
Contributor Author

crwen commented Aug 20, 2025

Is this good to go? @ethe

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.

4 participants