You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Krisztian Szucs / @kszucs: @wesm Cast to and from FixedSizedBinary will involve some more work and I have a couple of questions:
String/Binary to FixedSizedBinary:
shall we append values one by one and truncate if necessary
or add as zero copy cast and check that the value offsets indicate same width values
or both?
FixedSizedBinary to String/Binary is more straightforward to zero copy cast and generate the offset values, although I'm not how much sense this direction makes.
Wes McKinney / @wesm:
I think you can split the FSB work into a separate PR/JIRA.
I would say that when casting from String/Binary to FSB that if a value does not match the byte width then an error should be raised. One issue is that if there are nulls and the nulls are length-0 then zero copy is not possible
If something more nuanced is required later we can pursue it then, this seems like enough for now
Daniel Nugent / @nugend:
Was there ever a similar issue for the FixedSizeBinary to String cast? It’s nice to have when you want to ensure that single byte records are interpreted as characters.
It appears you can cast from Binary to String but not the other way.
Reporter: Neal Richardson / @nealrichardson
Assignee: Krisztian Szucs / @kszucs
Related issues:
PRs and other links:
Note: This issue was originally created as ARROW-8025. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: