2024.03.27 15:30:03.767284 [ 337 ] {} Context: Server logging level is set to 'test' and performance is degraded. This cannot be used in production. 2024.03.27 15:30:03.768060 [ 337 ] {} Context: The setting 'allow_remote_fs_zero_copy_replication' is enabled for MergeTree tables. But the feature of 'zero-copy replication' is under development and is not ready for production. The usage of this feature can lead to data corruption and loss. The setting should be disabled in production. 2024.03.27 15:30:04.008841 [ 337 ] {} KeeperLogStore: No logs exists in /var/lib/clickhouse/coordination/logs. It's Ok if it's the first run of clickhouse-keeper. 2024.03.27 15:30:04.009131 [ 337 ] {} KeeperLogStore: Removing all changelogs 2024.03.27 15:30:04.009429 [ 337 ] {} KeeperServer: Got 1000000000000000 value for setting 'reserved_log_items' which is bigger than int32_t max value, lowering value to 2147483647. 2024.03.27 15:30:04.009439 [ 337 ] {} KeeperServer: Can't start NON-SECURE keeper server in FIPS mode, please check the config. 2024.03.27 15:30:04.010666 [ 337 ] {} KeeperStateManager: No state was read 2024.03.27 15:30:04.010684 [ 337 ] {} RaftInstance: invalid election timeout lower bound detected, adjusted to 0 2024.03.27 15:30:04.010690 [ 337 ] {} RaftInstance: invalid election timeout upper bound detected, adjusted to 0 2024.03.27 15:30:04.061127 [ 549 ] {} RaftInstance: Election timeout, initiate leader election 2024.03.27 15:30:04.069399 [ 337 ] {} Access(local directory): File /var/lib/clickhouse/access/users.list doesn't exist 2024.03.27 15:30:04.069412 [ 337 ] {} Access(local directory): Recovering lists in directory /var/lib/clickhouse/access/ 2024.03.27 15:30:04.083212 [ 337 ] {} Context: Table system.session_log is enabled. It's unreliable and may contain garbage. Do not use it for any kind of security monitoring. 2024.03.27 15:30:36.574101 [ 552 ] {} RaftInstance: failed to accept a rpc connection due to error 125, Operation canceled 2024.03.27 15:30:36.584600 [ 548 ] {} KeeperLogStore: Raft server is not set in LogStore. 2024.03.27 15:30:36.589831 [ 337 ] {} KeeperLogStore: Changelog is shut down 2024.03.27 15:30:37.800096 [ 698 ] {} Context: Server logging level is set to 'test' and performance is degraded. This cannot be used in production. 2024.03.27 15:30:37.800534 [ 698 ] {} Context: The setting 'allow_remote_fs_zero_copy_replication' is enabled for MergeTree tables. But the feature of 'zero-copy replication' is under development and is not ready for production. The usage of this feature can lead to data corruption and loss. The setting should be disabled in production. 2024.03.27 15:30:38.039709 [ 698 ] {} KeeperServer: Got 1000000000000000 value for setting 'reserved_log_items' which is bigger than int32_t max value, lowering value to 2147483647. 2024.03.27 15:30:38.039719 [ 698 ] {} KeeperServer: Can't start NON-SECURE keeper server in FIPS mode, please check the config. 2024.03.27 15:30:38.040561 [ 698 ] {} RaftInstance: invalid election timeout lower bound detected, adjusted to 0 2024.03.27 15:30:38.040568 [ 698 ] {} RaftInstance: invalid election timeout upper bound detected, adjusted to 0 2024.03.27 15:30:38.091076 [ 910 ] {} RaftInstance: Election timeout, initiate leader election 2024.03.27 15:30:38.138322 [ 994 ] {} Container already exists, returning the existing container: std::exception. Code: 1001, type: Azure::Storage::StorageException, e.what() = 409 The specified container already exists. The specified container already exists. RequestId:d340d592-9e26-464b-a06d-3b2f807d06a6 Time:2024-03-27T14:30:38.125Z Request ID: d340d592-9e26-464b-a06d-3b2f807d06a6, Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./contrib/azure/sdk/core/azure-core/inc/azure/core/exception.hpp:29: Azure::Storage::StorageException::CreateFromResponse(std::unique_ptr>) @ 0x1551fd3d in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/azure/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/protocol/blob_rest_client.hpp:4760: Azure::Storage::Blobs::BlobContainerClient::Create(Azure::Storage::Blobs::CreateBlobContainerOptions const&, Azure::Core::Context const&) const @ 0x154ad773 in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./contrib/llvm-project/libcxx/include/string:2067: Azure::Storage::Blobs::BlobServiceClient::CreateBlobContainer(String const&, Azure::Storage::Blobs::CreateBlobContainerOptions const&, Azure::Core::Context const&) const @ 0x154dbfbe in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::getAzureBlobContainerClient(Poco::Util::AbstractConfiguration const&, String const&) @ 0x12eda1ae in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./src/Disks/ObjectStorages/AzureBlobStorage/registerDiskAzureBlobStorage.cpp:31: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) (.llvm.2107533022360376965) @ 0x12ed73a1 in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:0: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x12e4dc42 in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Disks/DiskSelector.cpp:0: DB::DiskSelector::initialize(Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr) @ 0x13052dcd in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Context::getDiskSelector(std::lock_guard&) const @ 0x1301b376 in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./src/Interpreters/Context.cpp:3136: DB::Context::getStoragePolicySelector(std::lock_guard&) const @ 0x12ff1db3 in /usr/lib/debug/usr/bin/clickhouse.debug 9. ./build_docker/./src/Interpreters/Context.cpp:3068: DB::Context::getStoragePolicy(String const&) const @ 0x1301ba60 in /usr/lib/debug/usr/bin/clickhouse.debug 10. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getStoragePolicy() const @ 0x147b8f64 in /usr/lib/debug/usr/bin/clickhouse.debug 11. ./build_docker/./src/Storages/MergeTree/MergeTreeData.h:912: DB::MergeTreeData::initializeDirectoriesAndFormatVersion(String const&, bool, String const&, bool) @ 0x147b3926 in /usr/lib/debug/usr/bin/clickhouse.debug 12. ./build_docker/./src/Storages/StorageMergeTree.cpp:112: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x14b12ddb in /usr/lib/debug/usr/bin/clickhouse.debug 13. ./build_docker/./src/Storages/MergeTree/registerStorageMergeTree.cpp:0: DB::create(DB::StorageFactory::Arguments const&) @ 0x14b0f6e8 in /usr/lib/debug/usr/bin/clickhouse.debug 14. ./build_docker/./src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x1422965b in /usr/lib/debug/usr/bin/clickhouse.debug 15. ./build_docker/./contrib/llvm-project/libcxx/include/string:2067: DB::createTableFromAST(DB::ASTCreateQuery, String const&, String const&, std::shared_ptr, bool) @ 0x12dcd0fc in /usr/lib/debug/usr/bin/clickhouse.debug 16. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::DatabaseOrdinary::loadTableFromMetadata(std::shared_ptr, String const&, DB::QualifiedTableName const&, std::shared_ptr const&, DB::LoadingStrictnessLevel) @ 0x12dece37 in /usr/lib/debug/usr/bin/clickhouse.debug 17. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: void std::__function::__policy_invoker::__call_impl>&, std::shared_ptr, std::vector> const&, unsigned long)::$_1, void ()>>(std::__function::__policy_storage const*) @ 0x12e432c4 in /usr/lib/debug/usr/bin/clickhouse.debug 18. ./build_docker/./base/base/../base/wide_integer_impl.h:789: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0xe459ce5 in /usr/lib/debug/usr/bin/clickhouse.debug 19. ./build_docker/./src/Common/ThreadPool.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, long, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0xe45c857 in /usr/lib/debug/usr/bin/clickhouse.debug 20. ./build_docker/./base/base/../base/wide_integer_impl.h:789: ThreadPoolImpl::worker(std::__list_iterator) @ 0xe455ab3 in /usr/lib/debug/usr/bin/clickhouse.debug 21. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, long, std::optional, bool)::'lambda0'()>>(void*) @ 0xe45b721 in /usr/lib/debug/usr/bin/clickhouse.debug 22. ? @ 0x7fca742db609 in ? 23. __clone @ 0x7fca74200353 in ? (version 23.3.19.34.altinityfips (altinity build)) 2024.03.27 15:30:38.313645 [ 698 ] {} Context: Table system.session_log is enabled. It's unreliable and may contain garbage. Do not use it for any kind of security monitoring. 2024.03.27 15:31:11.008034 [ 701 ] {9a9764ad-3f26-4115-9684-05dff58df083} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00 million, current rows: 8.88 million: While processing (SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID)) AS _subquery3: While processing 1 = ((SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID)) AS _subquery3). (TOO_MANY_ROWS) (version 23.3.19.34.altinityfips (altinity build)) (from [::1]:52414) (comment: 00175_counting_resources_in_subqueries.sql) (in query: SELECT 1 = (SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID));), Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./src/Common/Exception.cpp:91: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe383855 in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x12caffaa in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x12cafe5c in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x150a80e8 in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./contrib/llvm-project/libcxx/include/vector:1420: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x1506b72c in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x15083e89 in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x13b63b18 in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:190: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTSubquery const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x13e44432 in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x13df243d in /usr/lib/debug/usr/bin/clickhouse.debug 9. ./build_docker/./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x13df2599 in /usr/lib/debug/usr/bin/clickhouse.debug 10. ./build_docker/./contrib/llvm-project/libcxx/include/__iterator/wrap_iter.h:100: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTFunction const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x13e48143 in /usr/lib/debug/usr/bin/clickhouse.debug 11. ./build_docker/./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x13df245e in /usr/lib/debug/usr/bin/clickhouse.debug 12. ./build_docker/./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x13df2599 in /usr/lib/debug/usr/bin/clickhouse.debug 13. ./build_docker/./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x13df25a4 in /usr/lib/debug/usr/bin/clickhouse.debug 14. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:1551: DB::(anonymous namespace)::executeScalarSubqueries(std::shared_ptr&, std::shared_ptr, unsigned long, std::map, std::allocator>>&, std::map, std::allocator>>&, bool, bool) @ 0x13defc83 in /usr/lib/debug/usr/bin/clickhouse.debug 15. ./build_docker/./src/Core/SettingsFields.h:46: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr, bool, std::unordered_map, std::equal_to, std::allocator>>, std::unordered_map, std::equal_to, std::allocator>>) const @ 0x13deb60c in /usr/lib/debug/usr/bin/clickhouse.debug 16. ./build_docker/./contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_4::operator()(bool) const @ 0x13ac803e in /usr/lib/debug/usr/bin/clickhouse.debug 17. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x13ac4430 in /usr/lib/debug/usr/bin/clickhouse.debug 18. ./build_docker/./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x13b60f62 in /usr/lib/debug/usr/bin/clickhouse.debug 19. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:0: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x13b5ebd3 in /usr/lib/debug/usr/bin/clickhouse.debug 20. ./build_docker/./contrib/llvm-project/libcxx/include/vector:434: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x13a7c852 in /usr/lib/debug/usr/bin/clickhouse.debug 21. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x13e90856 in /usr/lib/debug/usr/bin/clickhouse.debug 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1160: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x13e8e20d in /usr/lib/debug/usr/bin/clickhouse.debug 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::runImpl() @ 0x14c9fbc4 in /usr/lib/debug/usr/bin/clickhouse.debug 24. ./build_docker/./src/Server/TCPHandler.cpp:2079: DB::TCPHandler::run() @ 0x14cb5f99 in /usr/lib/debug/usr/bin/clickhouse.debug 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x17c06774 in /usr/lib/debug/usr/bin/clickhouse.debug 26. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x17c0799b in /usr/lib/debug/usr/bin/clickhouse.debug 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:202: Poco::PooledThread::run() @ 0x17d8f867 in /usr/lib/debug/usr/bin/clickhouse.debug 28. ./build_docker/./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x17d8d2dd in /usr/lib/debug/usr/bin/clickhouse.debug 29. ? @ 0x7fca742db609 in ? 30. __clone @ 0x7fca74200353 in ? 2024.03.27 15:31:11.008192 [ 701 ] {9a9764ad-3f26-4115-9684-05dff58df083} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00 million, current rows: 8.88 million: While processing (SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID)) AS _subquery3: While processing 1 = ((SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID)) AS _subquery3). (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./src/Common/Exception.cpp:91: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe383855 in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x12caffaa in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x12cafe5c in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x150a80e8 in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./contrib/llvm-project/libcxx/include/vector:1420: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x1506b72c in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x15083e89 in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x13b63b18 in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:190: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTSubquery const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x13e44432 in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x13df243d in /usr/lib/debug/usr/bin/clickhouse.debug 9. ./build_docker/./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x13df2599 in /usr/lib/debug/usr/bin/clickhouse.debug 10. ./build_docker/./contrib/llvm-project/libcxx/include/__iterator/wrap_iter.h:100: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTFunction const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x13e48143 in /usr/lib/debug/usr/bin/clickhouse.debug 11. ./build_docker/./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x13df245e in /usr/lib/debug/usr/bin/clickhouse.debug 12. ./build_docker/./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x13df2599 in /usr/lib/debug/usr/bin/clickhouse.debug 13. ./build_docker/./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x13df25a4 in /usr/lib/debug/usr/bin/clickhouse.debug 14. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:1551: DB::(anonymous namespace)::executeScalarSubqueries(std::shared_ptr&, std::shared_ptr, unsigned long, std::map, std::allocator>>&, std::map, std::allocator>>&, bool, bool) @ 0x13defc83 in /usr/lib/debug/usr/bin/clickhouse.debug 15. ./build_docker/./src/Core/SettingsFields.h:46: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr, bool, std::unordered_map, std::equal_to, std::allocator>>, std::unordered_map, std::equal_to, std::allocator>>) const @ 0x13deb60c in /usr/lib/debug/usr/bin/clickhouse.debug 16. ./build_docker/./contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_4::operator()(bool) const @ 0x13ac803e in /usr/lib/debug/usr/bin/clickhouse.debug 17. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x13ac4430 in /usr/lib/debug/usr/bin/clickhouse.debug 18. ./build_docker/./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x13b60f62 in /usr/lib/debug/usr/bin/clickhouse.debug 19. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:0: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x13b5ebd3 in /usr/lib/debug/usr/bin/clickhouse.debug 20. ./build_docker/./contrib/llvm-project/libcxx/include/vector:434: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x13a7c852 in /usr/lib/debug/usr/bin/clickhouse.debug 21. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x13e90856 in /usr/lib/debug/usr/bin/clickhouse.debug 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1160: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x13e8e20d in /usr/lib/debug/usr/bin/clickhouse.debug 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::runImpl() @ 0x14c9fbc4 in /usr/lib/debug/usr/bin/clickhouse.debug 24. ./build_docker/./src/Server/TCPHandler.cpp:2079: DB::TCPHandler::run() @ 0x14cb5f99 in /usr/lib/debug/usr/bin/clickhouse.debug 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x17c06774 in /usr/lib/debug/usr/bin/clickhouse.debug 26. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x17c0799b in /usr/lib/debug/usr/bin/clickhouse.debug 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:202: Poco::PooledThread::run() @ 0x17d8f867 in /usr/lib/debug/usr/bin/clickhouse.debug 28. ./build_docker/./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x17d8d2dd in /usr/lib/debug/usr/bin/clickhouse.debug 29. ? @ 0x7fca742db609 in ? 30. __clone @ 0x7fca74200353 in ? 2024.03.27 15:31:11.022781 [ 701 ] {d19c5308-4321-4f54-b422-426f936aa03c} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00 million, current rows: 8.88 million. (TOO_MANY_ROWS) (version 23.3.19.34.altinityfips (altinity build)) (from [::1]:52414) (comment: 00175_counting_resources_in_subqueries.sql) (in query: SELECT 1 IN (SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID));), Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./src/Common/Exception.cpp:91: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe383855 in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x12caffaa in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x12cafe5c in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x150a80e8 in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./contrib/llvm-project/libcxx/include/vector:1420: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x1506b72c in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x15083e89 in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x13b63b18 in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x13e90f4b in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1160: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x13e8e20d in /usr/lib/debug/usr/bin/clickhouse.debug 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::runImpl() @ 0x14c9fbc4 in /usr/lib/debug/usr/bin/clickhouse.debug 10. ./build_docker/./src/Server/TCPHandler.cpp:2079: DB::TCPHandler::run() @ 0x14cb5f99 in /usr/lib/debug/usr/bin/clickhouse.debug 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x17c06774 in /usr/lib/debug/usr/bin/clickhouse.debug 12. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x17c0799b in /usr/lib/debug/usr/bin/clickhouse.debug 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:202: Poco::PooledThread::run() @ 0x17d8f867 in /usr/lib/debug/usr/bin/clickhouse.debug 14. ./build_docker/./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x17d8d2dd in /usr/lib/debug/usr/bin/clickhouse.debug 15. ? @ 0x7fca742db609 in ? 16. __clone @ 0x7fca74200353 in ? 2024.03.27 15:31:11.022905 [ 701 ] {d19c5308-4321-4f54-b422-426f936aa03c} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00 million, current rows: 8.88 million. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./src/Common/Exception.cpp:91: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe383855 in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x12caffaa in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x12cafe5c in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x150a80e8 in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./contrib/llvm-project/libcxx/include/vector:1420: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x1506b72c in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x15083e89 in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x13b63b18 in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x13e90f4b in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1160: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x13e8e20d in /usr/lib/debug/usr/bin/clickhouse.debug 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::runImpl() @ 0x14c9fbc4 in /usr/lib/debug/usr/bin/clickhouse.debug 10. ./build_docker/./src/Server/TCPHandler.cpp:2079: DB::TCPHandler::run() @ 0x14cb5f99 in /usr/lib/debug/usr/bin/clickhouse.debug 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x17c06774 in /usr/lib/debug/usr/bin/clickhouse.debug 12. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x17c0799b in /usr/lib/debug/usr/bin/clickhouse.debug 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:202: Poco::PooledThread::run() @ 0x17d8f867 in /usr/lib/debug/usr/bin/clickhouse.debug 14. ./build_docker/./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x17d8d2dd in /usr/lib/debug/usr/bin/clickhouse.debug 15. ? @ 0x7fca742db609 in ? 16. __clone @ 0x7fca74200353 in ? 2024.03.27 15:31:11.040459 [ 701 ] {0aa8092a-57a4-4cd3-98e0-658daac0ac90} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 15.00 million, current rows: 17.76 million: While executing MergeTreeThread. (TOO_MANY_ROWS) (version 23.3.19.34.altinityfips (altinity build)) (from [::1]:52414) (comment: 00175_counting_resources_in_subqueries.sql) (in query: SELECT count() IN (SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID)) FROM test.hits WHERE NOT ignore(AdvEngineID);), Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./src/Common/Exception.cpp:91: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe383855 in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x12caffaa in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x12cafe5c in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:97: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x12c9d193 in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:59: DB::ExecutionThreadContext::executeTask() @ 0x14d05cd2 in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:246: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x14cfacfb in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:212: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x14cfd03c in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./base/base/../base/wide_integer_impl.h:789: ThreadPoolImpl::worker(std::__list_iterator) @ 0xe455ab3 in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, long, std::optional, bool)::'lambda0'()>>(void*) @ 0xe45b721 in /usr/lib/debug/usr/bin/clickhouse.debug 9. ? @ 0x7fca742db609 in ? 10. __clone @ 0x7fca74200353 in ? 2024.03.27 15:31:11.043302 [ 701 ] {0aa8092a-57a4-4cd3-98e0-658daac0ac90} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 15.00 million, current rows: 17.76 million: While executing MergeTreeThread. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./src/Common/Exception.cpp:91: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe383855 in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x12caffaa in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x12cafe5c in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:97: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x12c9d193 in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:59: DB::ExecutionThreadContext::executeTask() @ 0x14d05cd2 in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:246: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x14cfacfb in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:212: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x14cfd03c in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./base/base/../base/wide_integer_impl.h:789: ThreadPoolImpl::worker(std::__list_iterator) @ 0xe455ab3 in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, long, std::optional, bool)::'lambda0'()>>(void*) @ 0xe45b721 in /usr/lib/debug/usr/bin/clickhouse.debug 9. ? @ 0x7fca742db609 in ? 10. __clone @ 0x7fca74200353 in ? 2024.03.27 15:31:11.057805 [ 701 ] {a7bc1546-5411-474f-879a-0e970762f0f1} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00 million, current rows: 8.88 million: While processing (SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID)) AS _subquery6: While processing CounterID > ((SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID)) AS _subquery6). (TOO_MANY_ROWS) (version 23.3.19.34.altinityfips (altinity build)) (from [::1]:52414) (comment: 00175_counting_resources_in_subqueries.sql) (in query: SELECT count() FROM test.hits WHERE CounterID > (SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID));), Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./src/Common/Exception.cpp:91: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe383855 in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x12caffaa in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x12cafe5c in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x150a80e8 in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./contrib/llvm-project/libcxx/include/vector:1420: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x1506b72c in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x15083e89 in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x13b63b18 in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:190: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTSubquery const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x13e44432 in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x13df243d in /usr/lib/debug/usr/bin/clickhouse.debug 9. ./build_docker/./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x13df2599 in /usr/lib/debug/usr/bin/clickhouse.debug 10. ./build_docker/./contrib/llvm-project/libcxx/include/__iterator/wrap_iter.h:100: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTFunction const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x13e48143 in /usr/lib/debug/usr/bin/clickhouse.debug 11. ./build_docker/./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x13df245e in /usr/lib/debug/usr/bin/clickhouse.debug 12. ./build_docker/./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x13df2599 in /usr/lib/debug/usr/bin/clickhouse.debug 13. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:1551: DB::(anonymous namespace)::executeScalarSubqueries(std::shared_ptr&, std::shared_ptr, unsigned long, std::map, std::allocator>>&, std::map, std::allocator>>&, bool, bool) @ 0x13defc83 in /usr/lib/debug/usr/bin/clickhouse.debug 14. ./build_docker/./src/Core/SettingsFields.h:46: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr, bool, std::unordered_map, std::equal_to, std::allocator>>, std::unordered_map, std::equal_to, std::allocator>>) const @ 0x13deb60c in /usr/lib/debug/usr/bin/clickhouse.debug 15. ./build_docker/./contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_4::operator()(bool) const @ 0x13ac803e in /usr/lib/debug/usr/bin/clickhouse.debug 16. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x13ac4430 in /usr/lib/debug/usr/bin/clickhouse.debug 17. ./build_docker/./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x13b60f62 in /usr/lib/debug/usr/bin/clickhouse.debug 18. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:0: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x13b5ebd3 in /usr/lib/debug/usr/bin/clickhouse.debug 19. ./build_docker/./contrib/llvm-project/libcxx/include/vector:434: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x13a7c852 in /usr/lib/debug/usr/bin/clickhouse.debug 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x13e90856 in /usr/lib/debug/usr/bin/clickhouse.debug 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1160: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x13e8e20d in /usr/lib/debug/usr/bin/clickhouse.debug 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::runImpl() @ 0x14c9fbc4 in /usr/lib/debug/usr/bin/clickhouse.debug 23. ./build_docker/./src/Server/TCPHandler.cpp:2079: DB::TCPHandler::run() @ 0x14cb5f99 in /usr/lib/debug/usr/bin/clickhouse.debug 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x17c06774 in /usr/lib/debug/usr/bin/clickhouse.debug 25. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x17c0799b in /usr/lib/debug/usr/bin/clickhouse.debug 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:202: Poco::PooledThread::run() @ 0x17d8f867 in /usr/lib/debug/usr/bin/clickhouse.debug 27. ./build_docker/./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x17d8d2dd in /usr/lib/debug/usr/bin/clickhouse.debug 28. ? @ 0x7fca742db609 in ? 29. __clone @ 0x7fca74200353 in ? 2024.03.27 15:31:11.058028 [ 701 ] {a7bc1546-5411-474f-879a-0e970762f0f1} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00 million, current rows: 8.88 million: While processing (SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID)) AS _subquery6: While processing CounterID > ((SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID)) AS _subquery6). (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./src/Common/Exception.cpp:91: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe383855 in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x12caffaa in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x12cafe5c in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x150a80e8 in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./contrib/llvm-project/libcxx/include/vector:1420: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x1506b72c in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x15083e89 in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x13b63b18 in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:190: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTSubquery const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x13e44432 in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x13df243d in /usr/lib/debug/usr/bin/clickhouse.debug 9. ./build_docker/./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x13df2599 in /usr/lib/debug/usr/bin/clickhouse.debug 10. ./build_docker/./contrib/llvm-project/libcxx/include/__iterator/wrap_iter.h:100: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTFunction const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x13e48143 in /usr/lib/debug/usr/bin/clickhouse.debug 11. ./build_docker/./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x13df245e in /usr/lib/debug/usr/bin/clickhouse.debug 12. ./build_docker/./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x13df2599 in /usr/lib/debug/usr/bin/clickhouse.debug 13. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:1551: DB::(anonymous namespace)::executeScalarSubqueries(std::shared_ptr&, std::shared_ptr, unsigned long, std::map, std::allocator>>&, std::map, std::allocator>>&, bool, bool) @ 0x13defc83 in /usr/lib/debug/usr/bin/clickhouse.debug 14. ./build_docker/./src/Core/SettingsFields.h:46: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr, bool, std::unordered_map, std::equal_to, std::allocator>>, std::unordered_map, std::equal_to, std::allocator>>) const @ 0x13deb60c in /usr/lib/debug/usr/bin/clickhouse.debug 15. ./build_docker/./contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_4::operator()(bool) const @ 0x13ac803e in /usr/lib/debug/usr/bin/clickhouse.debug 16. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x13ac4430 in /usr/lib/debug/usr/bin/clickhouse.debug 17. ./build_docker/./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x13b60f62 in /usr/lib/debug/usr/bin/clickhouse.debug 18. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:0: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x13b5ebd3 in /usr/lib/debug/usr/bin/clickhouse.debug 19. ./build_docker/./contrib/llvm-project/libcxx/include/vector:434: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x13a7c852 in /usr/lib/debug/usr/bin/clickhouse.debug 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x13e90856 in /usr/lib/debug/usr/bin/clickhouse.debug 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1160: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x13e8e20d in /usr/lib/debug/usr/bin/clickhouse.debug 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::runImpl() @ 0x14c9fbc4 in /usr/lib/debug/usr/bin/clickhouse.debug 23. ./build_docker/./src/Server/TCPHandler.cpp:2079: DB::TCPHandler::run() @ 0x14cb5f99 in /usr/lib/debug/usr/bin/clickhouse.debug 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x17c06774 in /usr/lib/debug/usr/bin/clickhouse.debug 25. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x17c0799b in /usr/lib/debug/usr/bin/clickhouse.debug 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:202: Poco::PooledThread::run() @ 0x17d8f867 in /usr/lib/debug/usr/bin/clickhouse.debug 27. ./build_docker/./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x17d8d2dd in /usr/lib/debug/usr/bin/clickhouse.debug 28. ? @ 0x7fca742db609 in ? 29. __clone @ 0x7fca74200353 in ? 2024.03.27 15:31:11.076822 [ 701 ] {8177e2ca-90a5-4a0e-ba31-e5867e4021f5} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 10.00 million, current rows: 13.12 million: While executing MergeTreeThread. (TOO_MANY_ROWS) (version 23.3.19.34.altinityfips (altinity build)) (from [::1]:52414) (comment: 00175_counting_resources_in_subqueries.sql) (in query: SELECT count() FROM test.hits WHERE CounterID < (SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID));), Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./src/Common/Exception.cpp:91: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe383855 in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x12caffaa in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x12cafe5c in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:97: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x12c9d193 in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:59: DB::ExecutionThreadContext::executeTask() @ 0x14d05cd2 in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:246: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x14cfacfb in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:212: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x14cfd03c in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./base/base/../base/wide_integer_impl.h:789: ThreadPoolImpl::worker(std::__list_iterator) @ 0xe455ab3 in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, long, std::optional, bool)::'lambda0'()>>(void*) @ 0xe45b721 in /usr/lib/debug/usr/bin/clickhouse.debug 9. ? @ 0x7fca742db609 in ? 10. __clone @ 0x7fca74200353 in ? 2024.03.27 15:31:11.077428 [ 701 ] {8177e2ca-90a5-4a0e-ba31-e5867e4021f5} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 10.00 million, current rows: 13.12 million: While executing MergeTreeThread. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./src/Common/Exception.cpp:91: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe383855 in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x12caffaa in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:0: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x12cafe5c in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:97: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x12c9d193 in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:59: DB::ExecutionThreadContext::executeTask() @ 0x14d05cd2 in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:246: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x14cfacfb in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:212: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x14cfd03c in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./base/base/../base/wide_integer_impl.h:789: ThreadPoolImpl::worker(std::__list_iterator) @ 0xe455ab3 in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, long, std::optional, bool)::'lambda0'()>>(void*) @ 0xe45b721 in /usr/lib/debug/usr/bin/clickhouse.debug 9. ? @ 0x7fca742db609 in ? 10. __clone @ 0x7fca74200353 in ? 2024.03.27 15:31:50.282080 [ 702 ] {613b4a86-7af8-4521-8d1e-c9d52c1ec318} executeQuery: Code: 307. DB::Exception: Limit for rows or bytes to read exceeded, max bytes: 572.20 MiB, current bytes: 576.36 MiB: While executing MergeTreeThread. (TOO_MANY_BYTES) (version 23.3.19.34.altinityfips (altinity build)) (from [::1]:50316) (comment: 00091_prewhere_two_conditions.sql) (in query: SELECT uniq(URL) FROM test.hits WHERE toTimeZone(EventTime, 'Asia/Dubai') >= '2014-03-20 00:00:00' AND toTimeZone(EventTime, 'Asia/Dubai') < '2014-03-21 00:00:00';), Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./src/Common/Exception.cpp:91: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe383855 in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, ReadableSize&&, ReadableSize&&) @ 0x12cb00ef in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:36: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x12cafccb in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:97: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x12c9d193 in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:59: DB::ExecutionThreadContext::executeTask() @ 0x14d05cd2 in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:246: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x14cfacfb in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:212: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x14cfd03c in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./base/base/../base/wide_integer_impl.h:789: ThreadPoolImpl::worker(std::__list_iterator) @ 0xe455ab3 in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, long, std::optional, bool)::'lambda0'()>>(void*) @ 0xe45b721 in /usr/lib/debug/usr/bin/clickhouse.debug 9. ? @ 0x7fca742db609 in ? 10. __clone @ 0x7fca74200353 in ? 2024.03.27 15:31:50.285246 [ 702 ] {613b4a86-7af8-4521-8d1e-c9d52c1ec318} TCPHandler: Code: 307. DB::Exception: Limit for rows or bytes to read exceeded, max bytes: 572.20 MiB, current bytes: 576.36 MiB: While executing MergeTreeThread. (TOO_MANY_BYTES), Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./src/Common/Exception.cpp:91: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe383855 in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, ReadableSize&&, ReadableSize&&) @ 0x12cb00ef in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:36: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x12cafccb in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:97: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x12c9d193 in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:59: DB::ExecutionThreadContext::executeTask() @ 0x14d05cd2 in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:246: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x14cfacfb in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:212: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x14cfd03c in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./base/base/../base/wide_integer_impl.h:789: ThreadPoolImpl::worker(std::__list_iterator) @ 0xe455ab3 in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, long, std::optional, bool)::'lambda0'()>>(void*) @ 0xe45b721 in /usr/lib/debug/usr/bin/clickhouse.debug 9. ? @ 0x7fca742db609 in ? 10. __clone @ 0x7fca74200353 in ? 2024.03.27 15:31:50.339029 [ 702 ] {033ffe59-faef-4c01-8b60-55585fca5f4f} executeQuery: Code: 307. DB::Exception: Limit for rows or bytes to read exceeded, max bytes: 572.20 MiB, current bytes: 585.58 MiB: While executing MergeTreeThread. (TOO_MANY_BYTES) (version 23.3.19.34.altinityfips (altinity build)) (from [::1]:50316) (comment: 00091_prewhere_two_conditions.sql) (in query: SELECT uniq(URL) FROM test.hits WHERE toTimeZone(EventTime, 'Asia/Dubai') >= '2014-03-20 00:00:00' AND URL != '' AND toTimeZone(EventTime, 'Asia/Dubai') < '2014-03-21 00:00:00';), Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./src/Common/Exception.cpp:91: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe383855 in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, ReadableSize&&, ReadableSize&&) @ 0x12cb00ef in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:36: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x12cafccb in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:97: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x12c9d193 in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:59: DB::ExecutionThreadContext::executeTask() @ 0x14d05cd2 in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:246: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x14cfacfb in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:212: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x14cfd03c in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./base/base/../base/wide_integer_impl.h:789: ThreadPoolImpl::worker(std::__list_iterator) @ 0xe455ab3 in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, long, std::optional, bool)::'lambda0'()>>(void*) @ 0xe45b721 in /usr/lib/debug/usr/bin/clickhouse.debug 9. ? @ 0x7fca742db609 in ? 10. __clone @ 0x7fca74200353 in ? 2024.03.27 15:31:50.341767 [ 702 ] {033ffe59-faef-4c01-8b60-55585fca5f4f} TCPHandler: Code: 307. DB::Exception: Limit for rows or bytes to read exceeded, max bytes: 572.20 MiB, current bytes: 585.58 MiB: While executing MergeTreeThread. (TOO_MANY_BYTES), Stack trace (when copying this message, always include the lines below): 0. ./build_docker/./src/Common/Exception.cpp:91: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe383855 in /usr/lib/debug/usr/bin/clickhouse.debug 1. ./build_docker/./contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, ReadableSize&&, ReadableSize&&) @ 0x12cb00ef in /usr/lib/debug/usr/bin/clickhouse.debug 2. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:36: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x12cafccb in /usr/lib/debug/usr/bin/clickhouse.debug 3. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:97: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x12c9d193 in /usr/lib/debug/usr/bin/clickhouse.debug 4. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:59: DB::ExecutionThreadContext::executeTask() @ 0x14d05cd2 in /usr/lib/debug/usr/bin/clickhouse.debug 5. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:246: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x14cfacfb in /usr/lib/debug/usr/bin/clickhouse.debug 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:212: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x14cfd03c in /usr/lib/debug/usr/bin/clickhouse.debug 7. ./build_docker/./base/base/../base/wide_integer_impl.h:789: ThreadPoolImpl::worker(std::__list_iterator) @ 0xe455ab3 in /usr/lib/debug/usr/bin/clickhouse.debug 8. ./build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, long, std::optional, bool)::'lambda0'()>>(void*) @ 0xe45b721 in /usr/lib/debug/usr/bin/clickhouse.debug 9. ? @ 0x7fca742db609 in ? 10. __clone @ 0x7fca74200353 in ?