You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "pitrou (via GitHub)" <gi...@apache.org> on 2024/01/09 15:09:57 UTC
Re: [PR] GH-39231: [C++][Compute] Add binary_slice kernel for fixed size binary [arrow]
pitrou commented on code in PR #39245:
URL: https://github.com/apache/arrow/pull/39245#discussion_r1446215147
##########
cpp/src/arrow/compute/kernels/scalar_string_ascii.cc:
##########
@@ -95,7 +95,7 @@ struct FixedSizeBinaryTransformExecBase {
ctx->Allocate(output_width * input_nstrings));
uint8_t* output_str = values_buffer->mutable_data();
- const uint8_t* input_data = input.GetValues<uint8_t>(1);
+ const uint8_t* input_data = input.GetValues<uint8_t>(1, input.offset * input_width);
Review Comment:
Nice catch, thank you!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org