You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "candiduslynx (via GitHub)" <gi...@apache.org> on 2023/06/07 17:30:18 UTC

[GitHub] [arrow] candiduslynx opened a new pull request, #35976: MINOR: [Go] Use proper methods in compute

candiduslynx opened a new pull request, #35976:
URL: https://github.com/apache/arrow/pull/35976

   Blocks #35973
   @zeroshade I believe this is a proper code (use Item instead of Value for map type).
   I'll leave the filling in & the issue creation up to you.
   
   <!--
   Thanks for opening a pull request!
   If this is your first pull request you can find detailed information on how 
   to contribute here:
     * [New Contributor's Guide](https://arrow.apache.org/docs/dev/developers/guide/step_by_step/pr_lifecycle.html#reviews-and-merge-of-the-pull-request)
     * [Contributing Overview](https://arrow.apache.org/docs/dev/developers/overview.html)
   
   
   If this is not a [minor PR](https://github.com/apache/arrow/blob/main/CONTRIBUTING.md#Minor-Fixes). Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose
   
   Opening GitHub issues ahead of time contributes to the [Openness](http://theapacheway.com/open/#:~:text=Openness%20allows%20new%20users%20the,must%20happen%20in%20the%20open.) of the Apache Arrow project.
   
   Then could you also rename the pull request title in the following format?
   
       GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}
   
   or
   
       MINOR: [${COMPONENT}] ${SUMMARY}
   
   In the case of PARQUET issues on JIRA the title also supports:
   
       PARQUET-${JIRA_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}
   
   -->
   
   ### 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 these changes tested?
   
   <!--
   We typically require tests for all PRs in order to:
   1. Prevent the code from being accidentally broken by subsequent changes
   2. Serve as another way to document the expected behavior of the code
   
   If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
   -->
   
   ### 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 uncomment the line below and explain which changes are breaking.
   -->
   <!-- **This PR includes breaking changes to public APIs.** -->
   
   <!--
   Please uncomment the line below (and provide explanation) if the changes fix either (a) a security vulnerability, (b) a bug that caused incorrect or invalid data to be produced, or (c) a bug that causes a crash (even when the API contract is upheld). We use this to highlight fixes to issues that may affect users without their knowledge. For this reason, fixing bugs that cause errors don't count, since those are usually obvious.
   -->
   <!-- **This PR contains a "Critical Fix".** -->


-- 
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] zeroshade commented on pull request #35976: MINOR: [Go] Use proper methods in compute

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade commented on PR #35976:
URL: https://github.com/apache/arrow/pull/35976#issuecomment-1581338505

   That said, it looks like I screwed up and used `Elem` when I should have used `Item` haha. Can you rebase this and then put back the fix to use Item on line 626 of `go/arrow/compute/exprs/types.go` ? I'll merge this after that.


-- 
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] candiduslynx commented on pull request #35976: MINOR: [Go] Use proper methods in compute

Posted by "candiduslynx (via GitHub)" <gi...@apache.org>.
candiduslynx commented on PR #35976:
URL: https://github.com/apache/arrow/pull/35976#issuecomment-1581342358

   @zeroshade I've solved the conflicts using GitHub UI, hope it's fine


-- 
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] zeroshade commented on pull request #35976: MINOR: [Go] Use proper methods in compute

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade commented on PR #35976:
URL: https://github.com/apache/arrow/pull/35976#issuecomment-1581335816

   @candiduslynx I just noticed this myself and merged #35983 to fix it before I saw this PR. 
   
   I think it's fine for now to leave them as deprecated rather than breaking people. We can remove them after v13 is released.


-- 
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] candiduslynx commented on pull request #35976: MINOR: [Go] Use proper methods in compute

Posted by "candiduslynx (via GitHub)" <gi...@apache.org>.
candiduslynx commented on PR #35976:
URL: https://github.com/apache/arrow/pull/35976#issuecomment-1581338361

   > @candiduslynx I just noticed this myself and merged #35983 to fix it before I saw this PR.
   > 
   > I think it's fine for now to leave them as deprecated rather than breaking people. We can remove them after v13 is released.
   
   @zeroshade kindly take a look at https://github.com/apache/arrow/pull/35983/files#r1222024655


-- 
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] candiduslynx commented on pull request #35976: MINOR: [Go] Use proper methods in compute

Posted by "candiduslynx (via GitHub)" <gi...@apache.org>.
candiduslynx commented on PR #35976:
URL: https://github.com/apache/arrow/pull/35976#issuecomment-1581258308

   @zeroshade after seeing this appear in th codebase once again, maybe it'll be better to remove the value x methods from map type completely, wdyt?
   They clearly cause a lot of misunderstanding between usual key-value semantics & key-item in map type.


-- 
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] candiduslynx commented on pull request #35976: MINOR: [Go] Use proper methods in compute

Posted by "candiduslynx (via GitHub)" <gi...@apache.org>.
candiduslynx commented on PR #35976:
URL: https://github.com/apache/arrow/pull/35976#issuecomment-1581344416

   > Thanks for the catch! I'll merge after the CI passes.
   
   I'll merge the main into the #35973 (mem leak fix) afterwards, so you can take a look alreay


-- 
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] ursabot commented on pull request #35976: MINOR: [Go] Use proper methods in compute

Posted by "ursabot (via GitHub)" <gi...@apache.org>.
ursabot commented on PR #35976:
URL: https://github.com/apache/arrow/pull/35976#issuecomment-1584122734

   Benchmark runs are scheduled for baseline = 08caf008b1bf2e93c70ae7db7531425bb9d4592e and contender = 9dd4c525289da9c65987fea99865579bba0e5bd0. 9dd4c525289da9c65987fea99865579bba0e5bd0 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
   Conbench compare runs links:
   [Finished :arrow_down:0.0% :arrow_up:0.0%] [ec2-t3-xlarge-us-east-2](https://conbench.ursa.dev/compare/runs/84116d530d074668b3d35a82af8bd118...4a9b39067c4242368b80943694497374/)
   [Finished :arrow_down:0.77% :arrow_up:0.0%] [test-mac-arm](https://conbench.ursa.dev/compare/runs/4fc72cac58ed4e5f8e741be404d560d2...961d9d43da994332b8c3db2956d1dd59/)
   [Finished :arrow_down:0.0% :arrow_up:0.0%] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/d944672d02a54fe4ab6a116fdc1b97b3...526535cd9d25412b9d33135c6100ce0f/)
   [Finished :arrow_down:0.18% :arrow_up:0.0%] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/94ea66081c2f441b8bbd324b58e5c84d...34abf663246b4bb3b9751d12a4130c38/)
   Buildkite builds:
   [Finished] [`9dd4c525` ec2-t3-xlarge-us-east-2](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ec2-t3-xlarge-us-east-2/builds/3004)
   [Finished] [`9dd4c525` test-mac-arm](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-test-mac-arm/builds/3040)
   [Finished] [`9dd4c525` ursa-i9-9960x](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ursa-i9-9960x/builds/3005)
   [Finished] [`9dd4c525` ursa-thinkcentre-m75q](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ursa-thinkcentre-m75q/builds/3030)
   [Finished] [`08caf008` ec2-t3-xlarge-us-east-2](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ec2-t3-xlarge-us-east-2/builds/3003)
   [Finished] [`08caf008` test-mac-arm](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-test-mac-arm/builds/3039)
   [Finished] [`08caf008` ursa-i9-9960x](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ursa-i9-9960x/builds/3004)
   [Finished] [`08caf008` ursa-thinkcentre-m75q](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ursa-thinkcentre-m75q/builds/3029)
   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] candiduslynx commented on pull request #35976: MINOR: [Go] Use proper methods in compute

Posted by "candiduslynx (via GitHub)" <gi...@apache.org>.
candiduslynx commented on PR #35976:
URL: https://github.com/apache/arrow/pull/35976#issuecomment-1581340238

   > That said, it looks like I screwed up and used `Elem` when I should have used `Item` haha. Can you rebase this and then put back the fix to use Item on line 626 of `go/arrow/compute/exprs/types.go` ? I'll merge this after that.
   
   That's why I've deprecated the `ValueX` method in the first place =)


-- 
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] zeroshade merged pull request #35976: MINOR: [Go] Use proper methods in compute

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade merged PR #35976:
URL: https://github.com/apache/arrow/pull/35976


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