Skip to content

Conversation

@staticlibs
Copy link
Collaborator

@staticlibs staticlibs commented Jun 1, 2025

This PR adds the following changes to DuckLake init:

  • if ducklake_alias option is not specified, then default value ducklake is used for it
  • when default URL jdbc:duckdb: or explicit memory URL jdbc:duckdb:memory: is used, then this URL is changed to jdbc:duckdb:memory:ducklakemem to be able to share this DB across multiple connections
  • DB pinning is enabled automatically (unless disabled by user)
  • Result set streaming is enabeld automatically (unless disabled by user)
  • DuckLake initialization is done only once for each DB (and each DuckLake path), ATTACH IF NOT EXISTS call is changed to ATTACH

Testing: test coverage pending, DuckLake is not yet available in main branch.

This PR adds the following changes to DuckLake init:

 - if `ducklake_alias` option is not specified, then default value
   `ducklake` is used for it
 - when default URL `jdbc:duckdb:` or explicit memory URL
   `jdbc:duckdb:memory:` is used, then this URL is changed to
   `jdbc:duckdb:memory:ducklakemem` to be able to share this DB across
   multiple connections
 - DB pinning is enabled automatically (unless disabled by user)
 - Result set streaming is enabeld automatically (unless disabled by
   user)
 - DuckLake initialization is done only once for each DB (and each
   DuckLake path), `ATTACH IF NOT EXISTS` call is changed to `ATTACH`

Testing: test coverage pending, DuckLake is not yet available in `main`
branch.
@staticlibs staticlibs force-pushed the ducklake_default_alias_and_pinning branch from 3648076 to d304173 Compare June 2, 2025 12:18
@staticlibs staticlibs merged commit 32cd749 into duckdb:main Jun 2, 2025
19 of 20 checks passed
@staticlibs staticlibs deleted the ducklake_default_alias_and_pinning branch June 2, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant