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.
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.
Repro Steps:
-
Launch DuckDB with the UI option: duckdb ondidim.duckdb -ui
-
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
-
Try to relaunch DuckDB with the UI option: duckdb ondidim.duckdb -ui
-
The following error appears:
INTERNAL Error: Failure while replaying WAL file "...ondidim.duckdb.wal": Calling DatabaseManager::GetDefaultDatabase with no default database set
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.
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.
Repro Steps:
Launch DuckDB with the UI option: duckdb ondidim.duckdb -ui
Execute the following SQL commands:
Try to relaunch DuckDB with the UI option: duckdb ondidim.duckdb -ui
The following error appears:
INTERNAL Error: Failure while replaying WAL file "...ondidim.duckdb.wal": Calling DatabaseManager::GetDefaultDatabase with no default database set