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 2021/07/18 10:44:28 UTC

[GitHub] [arrow] jpedroantunes opened a new pull request #10740: ARROW-13373: [C++][Gandiva] Implement CRC32 Hive function on Gandiva

jpedroantunes opened a new pull request #10740:
URL: https://github.com/apache/arrow/pull/10740


   Implement CRC32 Hive function on Gandiva


-- 
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] projjal commented on pull request #10740: ARROW-13373: [C++][Gandiva] Implement CRC32 Hive function on Gandiva

Posted by GitBox <gi...@apache.org>.
projjal commented on pull request #10740:
URL: https://github.com/apache/arrow/pull/10740#issuecomment-996473305


   @anthonylouisbsb Can you update `ci/docker/java-jni-manylinux-201x.dockerfile`


-- 
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 edited a comment on pull request #10740: ARROW-13373: [C++][Gandiva] Implement CRC32 Hive function on Gandiva

Posted by GitBox <gi...@apache.org>.
ursabot edited a comment on pull request #10740:
URL: https://github.com/apache/arrow/pull/10740#issuecomment-994399345


   Benchmark runs are scheduled for baseline = 994074d2e7ff073301e0959dbc5bb595a1e2a41b and contender = 41d115071587d68891b219cc137551d3ea9a568b. 41d115071587d68891b219cc137551d3ea9a568b 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/724ec636911940ec9f1887a028a6e3b8...e1a15dc8ba054c2b9688e251c9e682c5/)
   [Failed :arrow_down:0.0% :arrow_up:0.0%] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/3ea9607791bc4e8e81e85cc01f06e2f7...42023c57d9c24843a6c6d178f3414388/)
   [Finished :arrow_down:0.22% :arrow_up:0.04%] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/03f4d84dda4d491488ecc831a43a5f5f...bdb81143a04c4d739612de4b2b84297c/)
   Supported benchmarks:
   ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python. Runs only benchmarks with cloud = True
   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] anthonylouisbsb commented on pull request #10740: ARROW-13373: [C++][Gandiva] Implement CRC32 Hive function on Gandiva

Posted by GitBox <gi...@apache.org>.
anthonylouisbsb commented on pull request #10740:
URL: https://github.com/apache/arrow/pull/10740#issuecomment-996658912


   @projjal I will do it now


-- 
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 edited a comment on pull request #10740: ARROW-13373: [C++][Gandiva] Implement CRC32 Hive function on Gandiva

Posted by GitBox <gi...@apache.org>.
ursabot edited a comment on pull request #10740:
URL: https://github.com/apache/arrow/pull/10740#issuecomment-994399345


   Benchmark runs are scheduled for baseline = 994074d2e7ff073301e0959dbc5bb595a1e2a41b and contender = 41d115071587d68891b219cc137551d3ea9a568b. 41d115071587d68891b219cc137551d3ea9a568b 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/724ec636911940ec9f1887a028a6e3b8...e1a15dc8ba054c2b9688e251c9e682c5/)
   [Scheduled] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/3ea9607791bc4e8e81e85cc01f06e2f7...42023c57d9c24843a6c6d178f3414388/)
   [Scheduled] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/03f4d84dda4d491488ecc831a43a5f5f...bdb81143a04c4d739612de4b2b84297c/)
   Supported benchmarks:
   ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python. Runs only benchmarks with cloud = True
   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] anthonylouisbsb commented on pull request #10740: ARROW-13373: [C++][Gandiva] Implement CRC32 Hive function on Gandiva

Posted by GitBox <gi...@apache.org>.
anthonylouisbsb commented on pull request #10740:
URL: https://github.com/apache/arrow/pull/10740#issuecomment-996679132


   @kou https://github.com/apache/arrow/pull/11987 I opened a Pull Request to fix that problem. I am running the nightly builds right now.


-- 
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] pravindra closed pull request #10740: ARROW-13373: [C++][Gandiva] Implement CRC32 Hive function on Gandiva

Posted by GitBox <gi...@apache.org>.
pravindra closed pull request #10740:
URL: https://github.com/apache/arrow/pull/10740


   


-- 
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 edited a comment on pull request #10740: ARROW-13373: [C++][Gandiva] Implement CRC32 Hive function on Gandiva

Posted by GitBox <gi...@apache.org>.
ursabot edited a comment on pull request #10740:
URL: https://github.com/apache/arrow/pull/10740#issuecomment-994399345


   Benchmark runs are scheduled for baseline = 994074d2e7ff073301e0959dbc5bb595a1e2a41b and contender = 41d115071587d68891b219cc137551d3ea9a568b. 41d115071587d68891b219cc137551d3ea9a568b 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/724ec636911940ec9f1887a028a6e3b8...e1a15dc8ba054c2b9688e251c9e682c5/)
   [Scheduled] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/3ea9607791bc4e8e81e85cc01f06e2f7...42023c57d9c24843a6c6d178f3414388/)
   [Finished :arrow_down:0.22% :arrow_up:0.04%] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/03f4d84dda4d491488ecc831a43a5f5f...bdb81143a04c4d739612de4b2b84297c/)
   Supported benchmarks:
   ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python. Runs only benchmarks with cloud = True
   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] projjal commented on pull request #10740: ARROW-13373: [C++][Gandiva] Implement CRC32 Hive function on Gandiva

Posted by GitBox <gi...@apache.org>.
projjal commented on pull request #10740:
URL: https://github.com/apache/arrow/pull/10740#issuecomment-988708582


   @ViniciusSouzaRoque Can you rebase this. There are conflicts


-- 
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 #10740: ARROW-13373: [C++][Gandiva] Implement CRC32 Hive function on Gandiva

Posted by GitBox <gi...@apache.org>.
ursabot commented on pull request #10740:
URL: https://github.com/apache/arrow/pull/10740#issuecomment-994399345


   Benchmark runs are scheduled for baseline = 994074d2e7ff073301e0959dbc5bb595a1e2a41b and contender = 41d115071587d68891b219cc137551d3ea9a568b. 41d115071587d68891b219cc137551d3ea9a568b is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
   Conbench compare runs links:
   [Scheduled] [ec2-t3-xlarge-us-east-2](https://conbench.ursa.dev/compare/runs/724ec636911940ec9f1887a028a6e3b8...e1a15dc8ba054c2b9688e251c9e682c5/)
   [Scheduled] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/3ea9607791bc4e8e81e85cc01f06e2f7...42023c57d9c24843a6c6d178f3414388/)
   [Scheduled] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/03f4d84dda4d491488ecc831a43a5f5f...bdb81143a04c4d739612de4b2b84297c/)
   Supported benchmarks:
   ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python. Runs only benchmarks with cloud = True
   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] github-actions[bot] commented on pull request #10740: ARROW-13373: [C++][Gandiva] Implement CRC32 Hive function on Gandiva

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #10740:
URL: https://github.com/apache/arrow/pull/10740#issuecomment-882036433


   https://issues.apache.org/jira/browse/ARROW-13373


-- 
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] kou commented on pull request #10740: ARROW-13373: [C++][Gandiva] Implement CRC32 Hive function on Gandiva

Posted by GitBox <gi...@apache.org>.
kou commented on pull request #10740:
URL: https://github.com/apache/arrow/pull/10740#issuecomment-996214835


   This breaks our "java-jars" nightly build: https://github.com/ursacomputing/crossbow/runs/4543838221?check_suite_focus=true
   
   ```text
   /usr/local/bin/ccache /opt/rh/devtoolset-10/root/usr/bin/c++ -DARROW_HAVE_RUNTIME_AVX2 -DARROW_HAVE_RUNTIME_AVX512 -DARROW_HAVE_RUNTIME_BMI2 -DARROW_HAVE_RUNTIME_SSE4_2 -DARROW_HAVE_SSE4_2 -DARROW_JEMALLOC -DARROW_JEMALLOC_INCLUDE_DIR="" -DARROW_WITH_RE2 -DARROW_WITH_TIMING_TESTS -DARROW_WITH_UTF8PROC -DGANDIVA_EXPORTING -DGANDIVA_LLVM_VERSION=12 -DUTF8PROC_STATIC -I/build/src -I/arrow/cpp/src -I/arrow/cpp/src/generated -isystem /arrow/cpp/thirdparty/flatbuffers/include -isystem /opt/vcpkg/installed/amd64-linux-static-release/include -isystem /build/jemalloc_ep-prefix/src -isystem /build/xsimd_ep/src/xsimd_ep-install/include -isystem /arrow/cpp/thirdparty/hadoop/include -Wno-noexcept-type -Wno-subobject-linkage  -fdiagnostics-color=always -O3 -DNDEBUG  -Wall -fno-semantic-interposition -msse4.2  -O3 -DNDEBUG -fPIC -std=c++14 -MD -MT src/gandiva/CMakeFiles/gandiva_objlib.dir/Unity/unity_3_cxx.cxx.o -MF src/gandiva/CMakeFiles/gandiva_objlib.dir/Unity/unity_3_cxx.cxx.o.d -o src/gandi
 va/CMakeFiles/gandiva_objlib.dir/Unity/unity_3_cxx.cxx.o -c /build/src/gandiva/CMakeFiles/gandiva_objlib.dir/Unity/unity_3_cxx.cxx
   In file included from /build/src/gandiva/CMakeFiles/gandiva_objlib.dir/Unity/unity_3_cxx.cxx:9:
   /arrow/cpp/src/gandiva/gdv_function_stubs.cc:22:10: fatal error: boost/crc.hpp: No such file or directory
      22 | #include <boost/crc.hpp>
         |          ^~~~~~~~~~~~~~~
   compilation terminated.
   ```
   
   Could you also update `ci/docker/java-jni-manylinux-201x.dockerfile`?
   
   ```diff
   diff --git a/ci/docker/java-jni-manylinux-201x.dockerfile b/ci/docker/java-jni-manylinux-201x.dockerfile
   index 021dab686..d30e6d341 100644
   --- a/ci/docker/java-jni-manylinux-201x.dockerfile
   +++ b/ci/docker/java-jni-manylinux-201x.dockerfile
   @@ -20,16 +20,17 @@ FROM ${base}
    
    # Install the libaries required by the Gandiva to run
    RUN vcpkg install --clean-after-build \
   -        llvm \
   -        boost-system \
   -        boost-date-time \
   -        boost-regex \
   -        boost-predef \
            boost-algorithm \
   -        boost-locale \
   +        boost-crc \
   +        boost-date-time \
            boost-format \
   -        boost-variant \
   +        boost-locale \
            boost-multiprecision
   +        boost-predef \
   +        boost-regex \
   +        boost-system \
   +        boost-variant \
   +        llvm
    
    # Install Java
    ARG java=1.8.0
   ```
   
   @nealrichardson We may need to update our trimmed Boost archive.


-- 
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] projjal commented on a change in pull request #10740: ARROW-13373: [C++][Gandiva] Implement CRC32 Hive function on Gandiva

Posted by GitBox <gi...@apache.org>.
projjal commented on a change in pull request #10740:
URL: https://github.com/apache/arrow/pull/10740#discussion_r704108416



##########
File path: cpp/src/gandiva/crc32.cc
##########
@@ -0,0 +1,43 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Operations that can handle CRC algorithms.
+// To avoid references to boost (lib containing the CRC implementations) from
+// the precompiled-to-ir code (this causes issues with symbol resolution at runtime), we
+// use this wrapper exported from the CPP code.
+
+#include "gandiva/crc32.h"
+
+#include <boost/crc.hpp>
+
+namespace gandiva {
+namespace internal {
+// Get CRC32 for a given input chars
+int64_t GetCrc32(const char* input, int32_t input_len) {
+  boost::crc_32_type result;

Review comment:
       Can't you add this snippet directly inside the function in gdv_function_stubs?




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