Skip to content

INTERNAL Error during WAL replay when using -ui after ALTER TABLE to ENUM type #228

@estndard

Description

@estndard

I encountered an INTERNAL Error when restarting DuckDB with the -ui option. The error occurs during the WAL replay process, specifically after creating a custom ENUM type and altering a table column to use that type in a previous session.

Image

Interestingly, this error only occurs when the -ui flag is used. When launching DuckDB without the UI option, the database loads successfully without any issues.

Image

Repro Steps:

  1. Launch DuckDB with the UI option: duckdb ondidim.duckdb -ui

  2. Execute the following SQL commands:

CREATE TYPE province AS ENUM ('Seoul', 'Pusan');
CREATE TABLE office(province_name VARCHAR(20));
ALTER TABLE office ALTER province_name TYPE province;
.exit
  1. Try to relaunch DuckDB with the UI option: duckdb ondidim.duckdb -ui

  2. The following error appears:

INTERNAL Error: Failure while replaying WAL file "...ondidim.duckdb.wal": Calling DatabaseManager::GetDefaultDatabase with no default database set

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs infoMore investigation is required to understand this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions