We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 731fe1a + 1e104ac commit 3d51fbfCopy full SHA for 3d51fbf
1 file changed
server/server.go
@@ -327,7 +327,13 @@ func (s *Server) attachDuckLake(db *sql.DB) error {
327
return fmt.Errorf("failed to attach DuckLake: %w", err)
328
}
329
330
- log.Printf("Attached DuckLake catalog successfully")
+ // Set DuckLake as the default catalog so all queries use it
331
+ // See: https://duckdb.org/docs/stable/core_extensions/ducklake#usage
332
+ if _, err := db.Exec("USE ducklake"); err != nil {
333
+ return fmt.Errorf("failed to set DuckLake as default catalog: %w", err)
334
+ }
335
+
336
+ log.Printf("Attached DuckLake catalog successfully and set as default")
337
return nil
338
339
0 commit comments