Skip to content

Commit

Permalink
Updated DuckDB to v0.10.1, and Arrow to 15.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
prmoore77 committed Mar 18, 2024
1 parent 49017a3 commit f44fb17
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.0"
ARG DUCKDB_VERSION="0.10.1"

RUN case ${TARGETPLATFORM} in \
"linux/amd64") DUCKDB_FILE=https://github.com/duckdb/duckdb/releases/download/v${DUCKDB_VERSION}/duckdb_cli-linux-amd64.zip ;; \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -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.0"
ARG DUCKDB_VERSION="0.10.1"

RUN case ${TARGETPLATFORM} in \
"linux/amd64") DUCKDB_FILE=https://github.com/duckdb/duckdb/releases/download/v${DUCKDB_VERSION}/duckdb_cli-linux-amd64.zip ;; \
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.0).
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.1).

Prerequisite: DuckDB CLI
Install DuckDB CLI version [0.10.0](https://github.com/duckdb/duckdb/releases/tag/v0.10.0) - and make sure the executable is on your PATH.
Install DuckDB CLI version [0.10.1](https://github.com/duckdb/duckdb/releases/tag/v0.10.1) - and make sure the executable is on your PATH.

Platform Downloads:
[Linux x86-64](https://github.com/duckdb/duckdb/releases/download/v0.10.0/duckdb_cli-linux-amd64.zip)
[Linux arm64 (aarch64)](https://github.com/duckdb/duckdb/releases/download/v0.10.0/duckdb_cli-linux-aarch64.zip)
[MacOS Universal](https://github.com/duckdb/duckdb/releases/download/v0.10.0/duckdb_cli-osx-universal.zip)
[Linux x86-64](https://github.com/duckdb/duckdb/releases/download/v0.10.1/duckdb_cli-linux-amd64.zip)
[Linux arm64 (aarch64)](https://github.com/duckdb/duckdb/releases/download/v0.10.1/duckdb_cli-linux-aarch64.zip)
[MacOS Universal](https://github.com/duckdb/duckdb/releases/download/v0.10.1/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:

Expand Down Expand Up @@ -195,7 +195,7 @@ version(): string
Results:
version(): [
"v0.10.0"
"v0.10.1"
]
Total: 1
Expand Down Expand Up @@ -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: 15.0.0
WARNING - TLS is disabled for the Flight SQL server - this is insecure.
DuckDB version: v0.10.0
DuckDB version: v0.10.1
Running Init SQL command:
SET autoinstall_known_extensions = true;
Running Init SQL command:
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pandas==2.1.*
duckdb==0.10.0
duckdb==0.10.1
click==8.1.*
pyarrow==15.0.0
pyarrow==15.0.2
adbc-driver-flightsql==0.10.*
adbc-driver-manager==0.10.*
2 changes: 1 addition & 1 deletion third_party/Arrow_CMakeLists.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ExternalProject_Add(
arrow_project
PREFIX ${CMAKE_BINARY_DIR}/third_party
GIT_REPOSITORY https://github.com/apache/arrow.git
GIT_TAG apache-arrow-15.0.1
GIT_TAG apache-arrow-15.0.2
SOURCE_SUBDIR cpp
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/third_party/arrow
Expand Down
2 changes: 1 addition & 1 deletion third_party/DuckDB_CMakeLists.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ExternalProject_Add(
duckdb_project
PREFIX ${CMAKE_BINARY_DIR}/third_party
GIT_REPOSITORY https://github.com/duckdb/duckdb
GIT_TAG v0.10.0
GIT_TAG v0.10.1
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/third_party/duckdb
)

0 comments on commit f44fb17

Please sign in to comment.