Skip to content

LOGICAL_ERROR: Incorrect mutation commands, trying to rename column arr_v2 to arr, but part all_6_6_0 already has column arr #76495

@pamarcos

Description

@pamarcos

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=75656&sha=latest&name_0=PR&name_1=Stateless+tests+%28release%2C+ParallelReplicas%2C+s3+storage%29

2025.02.19 16:05:16.347180 [ 10682 ] {5e9c254e-b4b4-4bbb-8c41-77fdf196d3f1} <Error> executeQuery: Code: 42. DB::Exception: Too few arguments for function windowID: expected at least 2, got 1. (NUMBER_O
F_ARGUMENTS_DOESNT_MATCH) (version 25.2.1.2876) (from [::1]:47884) (comment: 01049_window_view_window_functions.sql) (query 41, line 47) (in query: -- Check that it's not LOGICAL_ERROR.
 create window view v to nonexist (x Int8) inner engine AggregatingMergeTree order by x as select x from nonexist group by tumble(now()) settings allow_experimental_window_view = 1, allow_experimental_
analyzer = 0;), Stack trace (when copying this message, always include the lines below):

0. ./build_docker/./src/Common/Exception.cpp:108: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000d960fbb
1. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x00000000089986ac
2. ./src/Common/Exception.h:131: DB::Exception::Exception<String&, unsigned long&, unsigned long>(int, FormatStringHelperImpl<std::type_identity<String&>::type, std::type_identity<unsigned long&>::type
, std::type_identity<unsigned long>::type>, String&, unsigned long&, unsigned long&&) @ 0x00000000128f8aeb
3. ./build_docker/./src/Storages/WindowView/StorageWindowView.cpp:1384: DB::StorageWindowView::initInnerQuery(DB::ASTSelectQuery, std::shared_ptr<DB::Context const>) @ 0x0000000012dfeeac
4. ./build_docker/./src/Storages/WindowView/StorageWindowView.cpp:1268: DB::StorageWindowView::StorageWindowView(DB::StorageID const&, std::shared_ptr<DB::Context const>, DB::ASTCreateQuery const&, DB:
:ColumnsDescription const&, String const&, DB::LoadingStrictnessLevel) @ 0x0000000012e121a6
5. ./contrib/llvm-project/libcxx/include/__memory/construct_at.h:41: std::shared_ptr<DB::IStorage> std::__function::__policy_invoker<std::shared_ptr<DB::IStorage> (DB::StorageFactory::Arguments const&)
>::__call_impl[abi:ne190107]<std::__function::__default_alloc_func<DB::registerStorageWindowView(DB::StorageFactory&)::$_0, std::shared_ptr<DB::IStorage> (DB::StorageFactory::Arguments const&)>>(std::_
_function::__policy_storage const*, DB::StorageFactory::Arguments const&) (.llvm.4180117680262624690) @ 0x0000000012e21252
6. ./contrib/llvm-project/libcxx/include/__functional/function.h:716: ? @ 0x000000001237131f
7. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1932: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr<
DB::DDLGuard, std::default_delete<DB::DDLGuard>>&, DB::LoadingStrictnessLevel) @ 0x000000001192fa24
8. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1744: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x0000000011924d02
9. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2331: DB::InterpreterCreateQuery::execute() @ 0x0000000011937d38
10. ./build_docker/./src/Interpreters/executeQuery.cpp:1458: DB::executeQueryImpl(char const*, char const*, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*
, std::shared_ptr<DB::IAST>&) @ 0x0000000011d72ea2
11. ./build_docker/./src/Interpreters/executeQuery.cpp:1625: DB::executeQuery(String const&, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000011d6e064
12. ./build_docker/./src/Server/TCPHandler.cpp:664: DB::TCPHandler::runImpl() @ 0x00000000130986ac
13. ./build_docker/./src/Server/TCPHandler.cpp:2629: DB::TCPHandler::run() @ 0x00000000130b6b39
14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000016785947
15. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000016785d99
16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x000000001675211b
17. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000167505fd
18. ? @ 0x00007f5717f6bac3
19. ? @ 0x00007f5717ffd850

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed user-visible misbehaviour in official releasetestingSpecial issue with list of bugs found by CI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions