Skip to content

Problem connecting to ducklake #8972

@klonuo

Description

@klonuo

I'm trying to connect to existing ducklake, with metadata.ducklake as duckdb metadata catalog:

type: connector
driver: duckdb
init_sql: |
  LOAD ducklake;
  CREATE SECRET (
      TYPE R2,
      KEY_ID '<redacted>',
      SECRET '<redacted>',
      ENDPOINT '<redacted>.r2.cloudflarestorage.com',
      URL_STYLE 'path',
      USE_SSL 1
  );
  ATTACH 'ducklake:metadata.ducklake' AS lake;

and get error:

failed to create model: 
Binder Error: Failed to attach DuckLake MetaData "__ducklake_metadata_lake" at path + "metadata.ducklake"Unique file handle conflict: 
Cannot attach "__ducklake_metadata_lake" - the database file "metadata.ducklake" is already attached by database "__ducklake_metadata_lake"

If I execute the "init_sql" stetement in duckdb cli, I can query the catalog fine SELECT * FROM lake.measurements

I tried many other approaches while none worked.

Is this maybe not supported?

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