Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

[NSE-62]Fixing issue0062 for package arrow dependencies in jar with refresh2 #172

Merged
merged 4 commits into from
Mar 22, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions arrow-data-source/docs/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,16 @@ yum install gmock

## Build Native SQL Engine

``` shell
git clone -b ${version} https://github.com/oap-project/native-sql-engine.git
cd oap-native-sql
cd cpp/
mkdir build/
cd build/
cmake .. -DTESTS=ON
make -j
```
cmake parameters:
BUILD_ARROW(Default is On): Build Arrow from Source
STATIC_ARROW(Default is Off): When BUILD_ARROW is ON, you can choose to build static or shared Arrow library, please notice current only support to build SHARED ARROW.
ARROW_ROOT(Default is /usr/local): When BUILD_ARROW is OFF, you can set the ARROW library path to link the existing library in your environment.
BUILD_PROTOBUF(Default is On): Build Protobuf from Source

``` shell
cd ../../core/
mvn clean package -DskipTests
git clone -b ${version} https://github.com/oap-project/native-sql-engine.git
cd native-sql-engine
mvn clean package -am -DskipTests -Dcpp_tests=OFF -Dbuild_arrow=ON -Dstatic_arrow=OFF -Darrow_root=/usr/local -Dbuild_protobuf=ON
```

### Additonal Notes
Expand Down
10 changes: 9 additions & 1 deletion native-sql-engine/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,15 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${cpp.dir}/compile.sh</executable>
<executable>bash</executable>
<arguments>
<argument>${cpp.dir}/compile.sh</argument>
<argument>${cpp_tests}</argument>
<argument>${build_arrow}</argument>
<argument>${static_arrow}</argument>
<argument>${build_protobuf}</argument>
<argument>${arrow_root}</argument>
</arguments>
</configuration>
</execution>
</executions>
Expand Down
15 changes: 14 additions & 1 deletion native-sql-engine/cpp/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

set -eu

TESTS=${1:-OFF}
BUILD_ARROW=${2:-ON}
STATIC_ARROW=${3:-OFF}
BUILD_PROTOBUF=${4:-ON}
ARROW_ROOT=${5:-/usr/local}

echo "CMAKE Arguments:"
echo "TESTS=${TESTS}"
echo "BUILD_ARROW=${BUILD_ARROW}"
echo "STATIC_ARROW=${STATIC_ARROW}"
echo "BUILD_PROTOBUF=${BUILD_PROTOBUF}"
echo "ARROW_ROOT=${ARROW_ROOT}"

CURRENT_DIR=$(cd "$(dirname "$BASH_SOURCE")"; pwd)
echo $CURRENT_DIR

Expand All @@ -11,7 +24,7 @@ if [ -d build ]; then
fi
mkdir build
cd build
cmake ..
cmake .. -DTESTS=${TESTS} -DBUILD_ARROW=${BUILD_ARROW} -DSTATIC_ARROW=${STATIC_ARROW} -DBUILD_PROTOBUF=${BUILD_PROTOBUF} -DARROW_ROOT=${ARROW_ROOT}
make

set +eu
Expand Down
Loading