Skip to content

DataLakeCatalog: Logical Error in ALTER TABLE query #86024

@alsugiliazova

Description

@alsugiliazova

Company or project name

No response

Describe what's wrong

I have DataLakeCatalog database and Iceberg table in it.

I run:

ALTER TABLE glue.`clickhouse-regression-database-1.table_a` ADD COLUMN new_column UInt64

And get:

Received exception from server (version 25.8.1):
Code: 49. DB::Exception: Received from localhost:9000. DB::Exception: Metadata is not initialized. (LOGICAL_ERROR)

Does it reproduce on the most recent release?

Yes

How to reproduce

  1. Create DataLakeCatalog database and Iceberg table
  2. Run ALTER TABLE query:
ALTER TABLE glue.`clickhouse-regression-database-1.table_a`
    (ADD COLUMN `new_column` UInt64)

Expected behavior

Code: 48. DB::Exception: Alter of type 'ADD_COLUMN' is not supported by storage Iceberg

Error message and/or stacktrace

2025.08.22 13:55:28.949464 [ 41 ] {} <Error> ForcedCriticalErrorsLogger: Code: 49. DB::Exception: Metadata is not initialized. (LOGICAL_ERROR), Stack trace (when copying this message, always include the lines below):

0. DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000132fd2df
1. DB::Exception::Exception(String&&, int, String, bool) @ 0x000000000c7e3b4e
2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000c7e3600
3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000c7f26ab
4. DB::DataLakeConfiguration<DB::StorageS3Configuration, DB::IcebergMetadata>::checkAlterIsPossible(DB::AlterCommands const&) @ 0x0000000015677837
5. DB::StorageObjectStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr<DB::Context const>) const @ 0x00000000161ef1e4
6. DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017d5f7eb
7. DB::InterpreterAlterQuery::execute() @ 0x0000000017d5c40d
8. DB::executeQueryImpl(char const*, char const*, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum, std::unique_ptr<DB::ReadBuffer, std::default_delete<DB::ReadBuffer>>&, std::shared_ptr<DB::IAST>&, std::shared_ptr<DB::ImplicitTransactionControlExecutor>) @ 0x0000000018213b85
9. DB::executeQuery(String const&, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x000000001820bf8b
10. DB::TCPHandler::runImpl() @ 0x0000000019891a94
11. DB::TCPHandler::run() @ 0x00000000198b3658
12. Poco::Net::TCPServerConnection::start() @ 0x000000001ed04fc7
13. Poco::Net::TCPServerDispatcher::run() @ 0x000000001ed05459
14. Poco::PooledThread::run() @ 0x000000001eccba87
15. Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001ecc9e81
16. ? @ 0x0000000000094ac3
17. ? @ 0x0000000000126850

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugConfirmed user-visible misbehaviour in official releasecomp-datalakeData lake table formats (Iceberg/Delta/Hudi) integration.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions