-
Notifications
You must be signed in to change notification settings - Fork 821
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
[arrow-cast] Support cast from Numeric (Int
, UInt
, etc) to Utf8View
#6719
Changes from 7 commits
205e40d
2a937fe
2f8f9c3
74de9bc
cdc16c9
d65e228
2ea0b51
b907827
92732ea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -484,6 +484,13 @@ impl<T: ByteViewType + ?Sized, V: AsRef<T::Native>> Extend<Option<V>> | |
/// ``` | ||
pub type StringViewBuilder = GenericByteViewBuilder<StringViewType>; | ||
|
||
impl std::fmt::Write for StringViewBuilder { | ||
fn write_str(&mut self, s: &str) -> std::fmt::Result { | ||
self.append_value(s); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was writing some tests for this, and it turns out this is different behavior than Specifically, calling I made a PR showing the problem: tlm365#1 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am working on a potential solution so we can unblock this PR There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
Ok(()) | ||
} | ||
} | ||
|
||
/// Array builder for [`BinaryViewArray`][crate::BinaryViewArray] | ||
/// | ||
/// Values can be appended using [`GenericByteViewBuilder::append_value`], and nulls with | ||
|
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 also what is contemplated by #6373 (aka I think this PR fixes that ticket as well)