SDK for Apache Doris

Clone this repo:
  1. dddf3ef [CI] Harden SDK workflows and repository protections (#15) by Mingyu Chen (Rayner) · 10 days ago main
  2. 5f10fab Adding golang stream load SDK (#11) by Wu Shilin · 5 months ago
  3. 3870d0a [Chore] upload version and changelog (#9) by wudi · 2 years, 8 months ago 1.0.1-release
  4. d075bbf [feature]add new data types (#8) by Petrichor · 2 years, 8 months ago
  5. b092410 Update NOTICE.txt (#6) by caoliang-web · 3 years ago

Doris SDK

This repository contains the sdk for the Apache Doris project.

Build and Install

Build the Java Thrift SDK with JDK 8 or later, Maven, and the Apache Thrift 0.24.0 compiler. The compiler version must match the Java library version in thrift-service/pom.xml.

Download the compiler source or the Windows executable from the Apache archive and verify the corresponding SHA-256 checksum before use. On Linux and macOS, install CMake, a C++ compiler, Flex and a recent Bison, then build from the extracted archive. Apache Thrift 0.24.0 archive

cmake -S thrift-0.24.0 -B thrift-build -DCMAKE_BUILD_TYPE=Release \
  -DBUILD_LIBRARIES=OFF -DBUILD_TESTING=OFF -DBUILD_TUTORIALS=OFF
cmake --build thrift-build --target thrift-compiler

If CMake picks up the older system Bison on macOS, add -DBISON_EXECUTABLE="$(brew --prefix bison)/bin/bison" to the configure command.

From this repository, pass the path to the resulting compiler to Maven.

mvn -pl thrift-service -Dthrift.binary=/path/to/thrift-build/compiler/cpp/bin/thrift clean package

On Linux and macOS you can also copy custom_env.sh.tpl to custom_env.sh, set THRIFT_BIN to the compiler path, and run bash build.sh from thrift-service.