From 9978cfe72bbcb9fc1281d7e829012bc4936efffb Mon Sep 17 00:00:00 2001 From: prmoore77 Date: Mon, 3 Jun 2024 10:25:25 -0400 Subject: [PATCH] Updated DuckDB to v1.0.0 --- Dockerfile | 2 +- Dockerfile.ci | 2 +- README.md | 14 +++++++------- third_party/DuckDB_CMakeLists.txt.in | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5e89581..a038f50 100644 --- a/Dockerfile +++ b/Dockerfile @@ -88,7 +88,7 @@ RUN cmake -S . -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr/local && \ COPY --chown=app_user:app_user ./tls ./tls # Install DuckDB CLI for troubleshooting, etc. -ARG DUCKDB_VERSION="0.10.3" +ARG DUCKDB_VERSION="1.0.0" RUN case ${TARGETPLATFORM} in \ "linux/amd64") DUCKDB_FILE=https://github.com/duckdb/duckdb/releases/download/v${DUCKDB_VERSION}/duckdb_cli-linux-amd64.zip ;; \ diff --git a/Dockerfile.ci b/Dockerfile.ci index d372598..636d4bf 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -81,7 +81,7 @@ RUN chmod +x /usr/local/bin/flight_sql_client COPY --chown=app_user:app_user tls tls # Install DuckDB CLI for troubleshooting, etc. -ARG DUCKDB_VERSION="0.10.3" +ARG DUCKDB_VERSION="1.0.0" RUN case ${TARGETPLATFORM} in \ "linux/amd64") DUCKDB_FILE=https://github.com/duckdb/duckdb/releases/download/v${DUCKDB_VERSION}/duckdb_cli-linux-amd64.zip ;; \ diff --git a/README.md b/README.md index a21d005..3326d36 100644 --- a/README.md +++ b/README.md @@ -37,15 +37,15 @@ The above command will automatically mount a very small TPC-H DuckDB database fi **Note**: You can disable TLS in the container by setting environment variable: `TLS_ENABLED` to "0" (default is "1" - enabled). This is not recommended unless you are using an mTLS sidecar in Kubernetes or something similar, as it will be insecure. ### Optional - open a different database file -When running the Docker image - you can have it run your own DuckDB database file (the database must be built with DuckDB version: 0.10.3). +When running the Docker image - you can have it run your own DuckDB database file (the database must be built with DuckDB version: 1.0.0). Prerequisite: DuckDB CLI -Install DuckDB CLI version [0.10.3](https://github.com/duckdb/duckdb/releases/tag/v0.10.3) - and make sure the executable is on your PATH. +Install DuckDB CLI version [1.0.0](https://github.com/duckdb/duckdb/releases/tag/v1.0.0) - and make sure the executable is on your PATH. Platform Downloads: -[Linux x86-64](https://github.com/duckdb/duckdb/releases/download/v0.10.3/duckdb_cli-linux-amd64.zip) -[Linux arm64 (aarch64)](https://github.com/duckdb/duckdb/releases/download/v0.10.3/duckdb_cli-linux-aarch64.zip) -[MacOS Universal](https://github.com/duckdb/duckdb/releases/download/v0.10.3/duckdb_cli-osx-universal.zip) +[Linux x86-64](https://github.com/duckdb/duckdb/releases/download/v1.0.0/duckdb_cli-linux-amd64.zip) +[Linux arm64 (aarch64)](https://github.com/duckdb/duckdb/releases/download/v1.0.0/duckdb_cli-linux-aarch64.zip) +[MacOS Universal](https://github.com/duckdb/duckdb/releases/download/v1.0.0/duckdb_cli-osx-universal.zip) In this example, we'll generate a new TPC-H Scale Factor 1 (1GB) database file, and then run the docker image to mount it: @@ -195,7 +195,7 @@ version(): string Results: version(): [ - "v0.10.3" + "v1.0.0" ] Total: 1 @@ -281,7 +281,7 @@ This option allows choosing from two backends: SQLite and DuckDB. It defaults to $ FLIGHT_PASSWORD="flight_password" flight_sql_server --database-filename data/TPC-H-small.duckdb Apache Arrow version: 16.1.0 WARNING - TLS is disabled for the Flight SQL server - this is insecure. -DuckDB version: v0.10.3 +DuckDB version: v1.0.0 Running Init SQL command: SET autoinstall_known_extensions = true; Running Init SQL command: diff --git a/third_party/DuckDB_CMakeLists.txt.in b/third_party/DuckDB_CMakeLists.txt.in index 20bcc43..50d3a99 100644 --- a/third_party/DuckDB_CMakeLists.txt.in +++ b/third_party/DuckDB_CMakeLists.txt.in @@ -9,7 +9,7 @@ ExternalProject_Add( duckdb_project PREFIX ${CMAKE_BINARY_DIR}/third_party GIT_REPOSITORY https://github.com/duckdb/duckdb - GIT_TAG caef2cd0c7bac1b2195451181844614c984f835a + GIT_TAG v1.0.0 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/third_party/duckdb )