Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
18 changes: 18 additions & 0 deletions NOTICES
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
The code for the t-digest was originally authored by Ted Dunning

Adrien Grand contributed the heart of the AVLTreeDigest (https://github.com/jpountz)

This product includes software from the Apache DataSketches C++ project.
* https://github.com/apache/datasketches-cpp/tree/master/theta
which contains the following NOTICE file:
-------
Apache DataSketches C++
Copyright 2025 The Apache Software Foundation

Copyright 2015-2018 Yahoo Inc.
Copyright 2019-2020 Verizon Media
Copyright 2021- Yahoo Inc.

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).

Prior to moving to ASF, the software for this project was developed at
Yahoo Inc. (https://developer.yahoo.com).
-------
7 changes: 7 additions & 0 deletions presto-native-execution/scripts/setup-centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export CC=/opt/rh/gcc-toolset-12/root/bin/gcc
export CXX=/opt/rh/gcc-toolset-12/root/bin/g++

GPERF_VERSION="3.1"
DATASKETCHES_VERSION="5.2.0"

CPU_TARGET="${CPU_TARGET:-avx}"
SCRIPT_DIR=$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")
Expand Down Expand Up @@ -59,10 +60,16 @@ function install_proxygen {
cmake_install_dir proxygen -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=ON
}

function install_datasketches {
wget_and_untar https://github.com/apache/datasketches-cpp/archive/refs/tags/${DATASKETCHES_VERSION}.tar.gz datasketches-cpp
cmake_install_dir datasketches-cpp -DBUILD_TESTS=OFF
}

function install_presto_deps {
run_and_time install_presto_deps_from_package_managers
run_and_time install_gperf
run_and_time install_proxygen
run_and_time install_datasketches
}

if [[ $# -ne 0 ]]; then
Expand Down
7 changes: 7 additions & 0 deletions presto-native-execution/scripts/setup-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ PYTHON_VENV=${PYTHON_VENV:-"${SCRIPTDIR}/../.venv"}
BUILD_DUCKDB="${BUILD_DUCKDB:-false}"
source "$(dirname "${BASH_SOURCE[0]}")/../velox/scripts/setup-macos.sh"
GPERF_VERSION="3.1"
DATASKETCHES_VERSION="5.2.0"

function install_proxygen {
wget_and_untar https://github.com/facebook/proxygen/archive/refs/tags/${FB_OS_VERSION}.tar.gz proxygen
Expand All @@ -42,9 +43,15 @@ function install_gperf {
)
}

function install_datasketches {
wget_and_untar https://github.com/apache/datasketches-cpp/archive/refs/tags/${DATASKETCHES_VERSION}.tar.gz datasketches-cpp
cmake_install_dir datasketches-cpp -DBUILD_TESTS=OFF
}

function install_presto_deps {
run_and_time install_gperf
run_and_time install_proxygen
run_and_time install_datasketches
}

(return 2>/dev/null) && return # If script was sourced, don't run commands.
Expand Down
7 changes: 7 additions & 0 deletions presto-native-execution/scripts/setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ set -eufx -o pipefail
# Run the velox setup script first.
source "$(dirname "${BASH_SOURCE[0]}")/../velox/scripts/setup-ubuntu.sh"
SUDO="${SUDO:-"sudo --preserve-env"}"
DATASKETCHES_VERSION="5.2.0"

function install_proxygen {
# proxygen requires python and gperf
Expand All @@ -31,8 +32,14 @@ function install_proxygen {
cmake_install_dir proxygen -DBUILD_TESTS=OFF
}

function install_datasketches {
wget_and_untar https://github.com/apache/datasketches-cpp/archive/refs/tags/${DATASKETCHES_VERSION}.tar.gz datasketches-cpp
cmake_install_dir datasketches-cpp -DBUILD_TESTS=OFF
}

function install_presto_deps {
run_and_time install_proxygen
run_and_time install_datasketches
}

if [[ $# -ne 0 ]]; then
Expand Down
Loading