GH-37751: [C++][Gandiva] Avoid registering exported functions multiple times in gandiva#37752
Conversation
|
Thanks for opening a pull request! If this is not a minor PR. 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 of the Apache Arrow project. Then could you also rename the pull request title in the following format? or In the case of PARQUET issues on JIRA the title also supports: See also: |
There was a problem hiding this comment.
All the REGISTER_EXPORTED_FUNCS are moved into a exported_funcs.cc file, which makes the registration API to be called from 7 * 6 times down to 6 times.
bc2c673 to
5eaf0f8
Compare
js8544
left a comment
There was a problem hiding this comment.
Some minor nits. Can you also add a unit test to make sure each function is only registered once?
|
Can you also fix the lint issue in CI? |
9ebb6b4 to
92fbf55
Compare
Sure. I fixed the lint issue in CI in the new commit. |
@js8544 I tried to do that, but currently the UPDATE: |
5482a47 to
af90fa2
Compare
|
@js8544 this PR is ready for review. There is still one check failing, but it seemed irrelevant with my change (may be caused by CI network issue as far as I can tell). Any comment is appreciated. Thanks. |
af90fa2 to
3cf1766
Compare
|
@js8544 I've resolved the remaining issues and rebased to the latest commit, could you please take a look again? Thanks. |
|
@github-actions crossbow submit -g cpp |
|
Revision: 3925cad1c3d84ebab04819f87447754da66cff79 Submitted crossbow builds: ursacomputing/crossbow @ actions-0aa03adfc8 |
|
@github-actions crossbow submit -g python |
|
Revision: 9e7ebb5bbb955b8cec1ca0355f7c1fe5411cda09 Submitted crossbow builds: ursacomputing/crossbow @ actions-d691ca469b |
… of testing and use pointers as returned value for consistent with coding convention.
9e7ebb5 to
49ea793
Compare
|
Thanks! LGTM now. Will need @pitrou's approval to merge. |
|
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 47314e8. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
…ultiple times in gandiva (apache#37752) ### Rationale for this change Try to fix apache#37751 ### What changes are included in this PR? The exported functions defined in gandiva are registered multiple times unnecessarily. This PR tries to address this issue. ### Are these changes tested? Yes. ### Are there any user-facing changes? No Authored-by: Yue Ni <niyue.com@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
…ultiple times in gandiva (apache#37752) ### Rationale for this change Try to fix apache#37751 ### What changes are included in this PR? The exported functions defined in gandiva are registered multiple times unnecessarily. This PR tries to address this issue. ### Are these changes tested? Yes. ### Are there any user-facing changes? No Authored-by: Yue Ni <niyue.com@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
Rationale for this change
Try to fix #37751
What changes are included in this PR?
The exported functions defined in gandiva are registered multiple times unnecessarily. This PR tries to address this issue.
Are these changes tested?
Yes.
Are there any user-facing changes?
No