This is an automated email from the ASF dual-hosted git repository.

zhaoc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 45fa9c9  Add Apache ORC lib in Doris (#2479)
45fa9c9 is described below

commit 45fa9c999ee7195abee45715a5f2adb26c1c2b04
Author: HangyuanLiu <460660...@qq.com>
AuthorDate: Thu Dec 19 11:09:49 2019 +0800

    Add Apache ORC lib in Doris (#2479)
---
 thirdparty/build-thirdparty.sh | 18 ++++++++++++++++++
 thirdparty/vars.sh             |  7 ++++++-
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh
index c4e8817..d6a55f0 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -635,6 +635,23 @@ build_croaringbitmap() {
     -DCMAKE_LIBRARY_PATH="$TP_INSTALL_DIR/lib;$TP_INSTALL_DIR/lib64" ..
     make -j$PARALLEL && make install
 }
+#orc
+build_orc() {
+    check_if_source_exist $ORC_SOURCE
+    cd $TP_SOURCE_DIR/orc-1.5.8
+    mkdir build -p && cd build
+    rm -rf CMakeCache.txt CMakeFiles/
+    $CMAKE_CMD ../ -DBUILD_JAVA=OFF \
+    -DPROTOBUF_HOME=$TP_INSTALL_DIR \
+    -DSNAPPY_HOME=$TP_INSTALL_DIR \
+    -DGTEST_HOME=$TP_INSTALL_DIR \
+    -DLZ4_HOME=$TP_INSTALL_DIR \
+    -DLZ4_INCLUDE_DIR=$TP_INSTALL_DIR/include/lz4 \
+    -DZLIB_HOME=$TP_INSTALL_DIR\
+    -DCMAKE_INSTALL_PREFIX=$TP_INSTALL_DIR 
+
+    make -j$PARALLEL && make install
+}
 
 build_llvm
 build_libevent
@@ -663,5 +680,6 @@ build_arrow
 build_s2
 build_bitshuffle
 build_croaringbitmap
+build_orc
 
 echo "Finihsed to build all thirdparties"
diff --git a/thirdparty/vars.sh b/thirdparty/vars.sh
index af1d1ff..747e731 100644
--- a/thirdparty/vars.sh
+++ b/thirdparty/vars.sh
@@ -263,7 +263,12 @@ 
CROARINGBITMAP_DOWNLOAD="https://github.com/RoaringBitmap/CRoaring/archive/v0.2.
 CROARINGBITMAP_NAME=CRoaring-0.2.60.tar.gz
 CROARINGBITMAP_SOURCE=CRoaring-0.2.60
 CROARINGBITMAP_MD5SUM="29602918e6890ffdeed84cb171857046"
+# ORC
+ORC_DOWNLOAD="http://mirror.bit.edu.cn/apache/orc/orc-1.5.8/orc-1.5.8.tar.gz";
+ORC_NAME=orc-1.5.8.tar.gz
+ORC_SOURCE=orc-1.5.8
+ORC_MD5SUM="2318b0a8233c8833b3a6cfd771c60883"
 
 # all thirdparties which need to be downloaded is set in array TP_ARCHIVES
-export TP_ARCHIVES="LIBEVENT OPENSSL THRIFT LLVM CLANG COMPILER_RT PROTOBUF 
GFLAGS GLOG GTEST RAPIDJSON SNAPPY GPERFTOOLS ZLIB LZ4 BZIP LZO2 CURL RE2 BOOST 
MYSQL BOOST_FOR_MYSQL LEVELDB BRPC ROCKSDB LIBRDKAFKA FLATBUFFERS ARROW BROTLI 
DOUBLE_CONVERSION URIPARSER ZSTD S2 BITSHUFFLE CROARINGBITMAP"
+export TP_ARCHIVES="LIBEVENT OPENSSL THRIFT LLVM CLANG COMPILER_RT PROTOBUF 
GFLAGS GLOG GTEST RAPIDJSON SNAPPY GPERFTOOLS ZLIB LZ4 BZIP LZO2 CURL RE2 BOOST 
MYSQL BOOST_FOR_MYSQL LEVELDB BRPC ROCKSDB LIBRDKAFKA FLATBUFFERS ARROW BROTLI 
DOUBLE_CONVERSION URIPARSER ZSTD S2 BITSHUFFLE CROARINGBITMAP ORC"
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to