Repository navigation
GH-40933: [Java] Enhance the copyFrom* functionality in StringView - #41752
Conversation
|
@lidavidm should we also include test cases for |
|
We should test both types yes |
|
@lidavidm this PR is ready for review. |
There was a problem hiding this comment.
Can we avoid reflection and just parameterize with the instance instead of the class?
There was a problem hiding this comment.
Yes definitely. It looks cool, but unreadable at the same time ;)
There was a problem hiding this comment.
@lidavidm If we take instances, then we have a bit of a hard time deallocating memory. Rather I used the types, is this okay?
There was a problem hiding this comment.
I updated. Is it as expected?
There was a problem hiding this comment.
No, you want something like Function<BufferAllocator, BaseVariableWidthViewVector>.
There was a problem hiding this comment.
I updated. Does it look okay?
There was a problem hiding this comment.
No, so: why not just directly have the Function be the parameter? Instead of bouncing through the type? We never use type in the actual tests.
There was a problem hiding this comment.
Ah right. I updated.
There was a problem hiding this comment.
Resolving conflicts...
…iew (apache#41752) ### Rationale for this change Initial implementation of StringView doesn't contain `copy` functionality. This PR adds that feature. ### What changes are included in this PR? This PR adds `copyFrom` and `copyFromSafe` functions to `BaseVariableWidthViewVector`. ### Are these changes tested? Yes ### Are there any user-facing changes? No * GitHub Issue: apache#40933 Lead-authored-by: Vibhatha Abeykoon <vibhatha@gmail.com> Co-authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
|
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 54dfb82. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 11 possible false positives for unstable benchmarks that are known to sometimes produce them. |
…iew (apache#41752) ### Rationale for this change Initial implementation of StringView doesn't contain `copy` functionality. This PR adds that feature. ### What changes are included in this PR? This PR adds `copyFrom` and `copyFromSafe` functions to `BaseVariableWidthViewVector`. ### Are these changes tested? Yes ### Are there any user-facing changes? No * GitHub Issue: apache#40933 Lead-authored-by: Vibhatha Abeykoon <vibhatha@gmail.com> Co-authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
Rationale for this change
Initial implementation of StringView doesn't contain
copyfunctionality. This PR adds that feature.What changes are included in this PR?
This PR adds
copyFromandcopyFromSafefunctions toBaseVariableWidthViewVector.Are these changes tested?
Yes
Are there any user-facing changes?
No
copyFrom*functionality in StringView #40933