You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/27 23:58:59 UTC

[GitHub] [arrow-rs] tustvold opened a new pull request, #2960: Fix take string on sliced indices

tustvold opened a new pull request, #2960:
URL: https://github.com/apache/arrow-rs/pull/2960

   # Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
   -->
   
   Closes #1049
   
   # Rationale for this change
    
   <!--
   Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
   Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.
   -->
   
   # What changes are included in this PR?
   
   <!--
   There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
   -->
   
   # Are there any user-facing changes?
   
   
   <!--
   If there are user-facing changes then we may require documentation to be updated before approving the PR.
   -->
   
   <!---
   If there are any breaking changes to public APIs, please add the `breaking change` label.
   -->
   


-- 
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


[GitHub] [arrow-rs] tustvold merged pull request #2960: Fix take string on sliced indices

Posted by GitBox <gi...@apache.org>.
tustvold merged PR #2960:
URL: https://github.com/apache/arrow-rs/pull/2960


-- 
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


[GitHub] [arrow-rs] ursabot commented on pull request #2960: Fix take string on sliced indices

Posted by GitBox <gi...@apache.org>.
ursabot commented on PR #2960:
URL: https://github.com/apache/arrow-rs/pull/2960#issuecomment-1294509440

   Benchmark runs are scheduled for baseline = 0a115d6e270690ed076aeffc35d30dc369174f09 and contender = 87ac05bcafd343d3d8ad3b519631d83090afeb1c. 87ac05bcafd343d3d8ad3b519631d83090afeb1c is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
   Conbench compare runs links:
   [Skipped :warning: Benchmarking of arrow-rs-commits is not supported on ec2-t3-xlarge-us-east-2] [ec2-t3-xlarge-us-east-2](https://conbench.ursa.dev/compare/runs/a35d884605074243a2643fade57f7a50...19b300e68d7c452c830c95a3fbe8d976/)
   [Skipped :warning: Benchmarking of arrow-rs-commits is not supported on test-mac-arm] [test-mac-arm](https://conbench.ursa.dev/compare/runs/da16e901b624402d9df475e965088b13...10eeb583f2ea4b7bbde0afdca7e315fb/)
   [Skipped :warning: Benchmarking of arrow-rs-commits is not supported on ursa-i9-9960x] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/4e806548ce3444868166b133273b8278...dc65190ab83248229a0db244f0a0d729/)
   [Skipped :warning: Benchmarking of arrow-rs-commits is not supported on ursa-thinkcentre-m75q] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/e0a1207bcf6f45968473afaa9d6038c1...9c9c82ded968482487c181b6053754af/)
   Buildkite builds:
   Supported benchmarks:
   ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
   test-mac-arm: Supported benchmark langs: C++, Python, R
   ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
   ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java
   


-- 
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


[GitHub] [arrow-rs] tustvold commented on a diff in pull request #2960: Fix take string on sliced indices

Posted by GitBox <gi...@apache.org>.
tustvold commented on code in PR #2960:
URL: https://github.com/apache/arrow-rs/pull/2960#discussion_r1007470264


##########
arrow-select/src/take.rs:
##########
@@ -675,12 +673,7 @@ where
             *offset = length_so_far;
         }
 
-        nulls = match indices.data_ref().null_buffer() {
-            Some(buffer) => {
-                Some(buffer_bin_and(buffer, 0, &null_buf.into(), 0, data_len))

Review Comment:
   The bug is that this doesn't take into account any offset that indices may have, it should be
   
   ```
   buffer_bin_and(buffer, indices.offset(), &null_buf.into(), 0, data_len)
   ```
   
   However, this code is completely redundant as we already check the validity of indices in the loop above when constructing this mask, and so we can just remove this



-- 
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


[GitHub] [arrow-rs] tustvold commented on a diff in pull request #2960: Fix take string on sliced indices

Posted by GitBox <gi...@apache.org>.
tustvold commented on code in PR #2960:
URL: https://github.com/apache/arrow-rs/pull/2960#discussion_r1007470264


##########
arrow-select/src/take.rs:
##########
@@ -675,12 +673,7 @@ where
             *offset = length_so_far;
         }
 
-        nulls = match indices.data_ref().null_buffer() {
-            Some(buffer) => {
-                Some(buffer_bin_and(buffer, 0, &null_buf.into(), 0, data_len))

Review Comment:
   The bug is that this doesn't take into account any offset that indices may have.
   
   However, this code is completely redundant as we already check the validity of indices when constructing this mask, and so we can just remove this



-- 
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