Skip to content

daanse-pivot-duckdb: update DuckDB JDBC to 2.0.x (needed to read through DuckDB's Quack protocol) #70

Open

Description

@Xerxis2

Summary

daanse-pivot-duckdb bundles duckdb_jdbc 1.5.5. When Daanse reads a DuckDB database served
by another process through DuckDB's client-server protocol Quack (ATTACH 'quack:...' in the
session init SQL file), two 1.5.5 client limitations break it:

  1. Remote tables with computed column defaults make ATTACH fail (duckdb-quack #132, fixed in 2.0.0).
  2. Joins of two remote tables fail with Multiple streaming scans ... not supported (related: duckdb-quack #259). Every Daanse query joining fact and dimension hits this.

With DuckDB 2.0.0 on both ends, both work.

What we did

We replaced only the embedded jar/duckdb_jdbc-1.5.5.0.jar inside daanse.pivot.duckdb.jar
with org.duckdb:duckdb_jdbc:2.0.0.1 from Maven Central. The datasource bundle imports
org.duckdb without a version range, so no rebuild was needed. With this change, a hand-written
FP&A cube (240k fact rows, 4 dimensions) answered MDX correctly through Quack.

Request

Bump the DuckDB JDBC dependency to 2.0.x for the DuckDB image. A Quack example using
DAANSE_JDBC_SESSION_INIT_SQL_FILE with ATTACH 'quack:...' in the README would also help.

Note: we have not checked whether database files written by DuckDB 2.0 can be opened by the
bundled 1.5.5 driver. If they cannot, the bump also matters for direct file access.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions