Skip to content

fix: query log not persisting to DuckLake#321

Open
sakce wants to merge 1 commit intomainfrom
fix-querylog-ducklake-bugs
Open

fix: query log not persisting to DuckLake#321
sakce wants to merge 1 commit intomainfrom
fix-querylog-ducklake-bugs

Conversation

@sakce
Copy link
Contributor

@sakce sakce commented Mar 14, 2026

  • Pin QueryLogger's :memory: DuckDB to single connection (SetMaxOpenConns(1)) so ATTACH/CREATE TABLE state is shared with INSERT calls
  • Remove DEFAULT clauses from CREATE TABLE (unsupported by DuckLake)
  • Change normalized_query_hash from UBIGINT to BIGINT and cast to int64 (DuckDB Go driver rejects uint64 with high bit set)
  • Fix set_option parameter name: schema_name -> schema

- Pin QueryLogger's :memory: DuckDB to single connection (SetMaxOpenConns(1))
  so ATTACH/CREATE TABLE state is shared with INSERT calls
- Remove DEFAULT clauses from CREATE TABLE (unsupported by DuckLake)
- Change normalized_query_hash from UBIGINT to BIGINT and cast to int64
  (DuckDB Go driver rejects uint64 with high bit set as query params)
- Fix set_option parameter name: schema_name -> schema
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