-
Notifications
You must be signed in to change notification settings - Fork 222
Added to
conversion to FixedSizeBinary
#622
Conversation
Codecov Report
@@ Coverage Diff @@
## main #622 +/- ##
==========================================
+ Coverage 69.71% 69.74% +0.03%
==========================================
Files 299 299
Lines 16599 16677 +78
==========================================
+ Hits 11572 11632 +60
- Misses 5027 5045 +18
Continue to review full report at Codecov.
|
Thanks! I think we need to check that the |
I didn't fully understand what we mean by valid in this case? If we use an extension type, do we know what is valid or not? |
The function
in this case we need to verify that the |
(note that the |
/// Panics iff the data_type is not supported for the physical type. | ||
#[inline] | ||
pub fn to(self, data_type: DataType) -> Self { | ||
match ( |
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.
Something like this? I assume we must check that the physical types are correct.
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.
exactly, this works!
to
conversion to FixedSizeBinary
This adds
fn to
conversion forFixedSizeBinary
. This makes converting to another logical type consistent with primitive arrays.I could add it to the other arrays as well.