Skip to content

Column description is empty and it can't be built from sample from table error still happens #87972

@PedroTadim

Description

@PedroTadim

Describe the bug

Related to #72139 Seen here: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=83888&sha=8652cee6e507e401f05f17222f0e4c5b7fa298e7&name_0=PR&name_1=BuzzHouse+%28amd_ubsan%29

How to reproduce

Run Fiddle: https://fiddle.clickhouse.com/8e73f854-cc7f-4a71-a0e0-3ef6bfb2ac78

Error message and/or stacktrace

Stack trace from client:

Logical error: 'Column description is empty and it can't be built from sample from table. Cannot execute query.'.
Stack trace (when copying this message, always include the lines below):

0. contrib/llvm-project/libcxx/include/__exception/exception.h:113: Poco::Exception::Exception(String const&, int) @ 0x00000000276a9272
1. src/Common/Exception.cpp:128: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000149f81a9
2. src/Common/Exception.h:123: DB::Exception::Exception(String&&, int, String, bool) @ 0x000000000d2fa30e
3. src/Common/Exception.h:58: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000d2f9d11
4. src/Common/Exception.h:141: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000d306d36
5. src/Client/ClientBase.cpp:1834: DB::ClientBase::sendData(DB::Block&, DB::ColumnsDescription const&, std::shared_ptr<DB::IAST>) @ 0x000000001f4d3485
6. src/Client/ClientBase.cpp:1815: DB::ClientBase::processInsertQuery(String, std::shared_ptr<DB::IAST>) @ 0x000000001f4d1768
7. src/Client/ClientBase.cpp:2302: DB::ClientBase::processParsedSingleQuery(std::basic_string_view<char, std::char_traits<char>>, std::shared_ptr<DB::IAST>, bool&, unsigned long) @ 0x000000001f4cabcd
8. src/Client/ClientBase.cpp:2680: DB::ClientBase::executeMultiQuery(String const&) @ 0x000000001f4d5e91
9. src/Client/ClientBase.cpp:2921: DB::ClientBase::processQueryText(String const&) @ 0x000000001f4d7232
10. src/Client/ClientBase.cpp:3625: DB::ClientBase::runInteractive() @ 0x000000001f4dfb4b
11. programs/client/Client.cpp:377: DB::Client::main(std::vector<String, std::allocator<String>> const&) @ 0x0000000014c4db79
12. base/poco/Util/src/Application.cpp:315: Poco::Util::Application::run() @ 0x0000000027784bb1
13. programs/client/Client.cpp:1119: mainEntryClickHouseClient(int, char**) @ 0x0000000014c58fc6
14. programs/main.cpp:380: main @ 0x000000000d2ed027
15. strcmp @ 0x000000000002a578
16. __libc_start_main@GLIBC_2.2.5 @ 0x000000000002a63b
17. _start @ 0x000000000d2de02e

Metadata

Metadata

Labels

bugConfirmed user-visible misbehaviour in official releasefuzzProblem found by one of the fuzzers

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions