Skip to content

Logical error: '!table_alias.empty()' (STID: None) #93321

@kssenii

Description

@kssenii

Important: This issue was automatically generated and is used by CI for matching failures. DO NOT modify the body content. DO NOT remove labels.

Test name: Logical error: '!table_alias.empty()' (STID: None)
CI report: BuzzHouse (amd_msan)
CIDB statistics: cidb

Test output:

Error:
Logical error: '!table_alias.empty()'.
---

Failed query:
CREATE TABLE d0.`t158` (`c0` Tuple()) ENGINE = StripeLog() SETTINGS iceberg_insert_max_rows_in_data_file = 0, optimize_syntax_fuse_functions = 1, least_greatest_legacy_null_behavior = 0, input_format_csv_trim_whitespaces = 1, max_download_threads = 2, join_any_take_last_row = 0, http_write_exception_in_output_format = 1, preferred_block_size_bytes = 1122617, output_format_parquet_geometadata = 1, skip_download_if_exceeds_query_cache = 1 AS (SELECT (50::Int8, 811656739243220271194::Int128) FROM d0.`v156` AS t0d0);

Trace:
0. ./ci/tmp/build/./src/Common/StackTrace.cpp:397: StackTrace::StackTrace() @ 0x000000002e8a69e7
1. ./ci/tmp/build/./src/Common/Exception.cpp:62: DB::abortOnFailedAssertion(String const&) @ 0x000000002e6a0461
2. ./ci/tmp/build/./src/Planner/PlannerActionsVisitor.cpp:206: DB::(anonymous namespace)::ActionNodeNameHelper::calculateActionNodeName(std::shared_ptr<DB::IQueryTreeNode> const&) @ 0x0000000042e36f5f
3. ./ci/tmp/build/./src/Planner/PlannerActionsVisitor.cpp:172: DB::(anonymous namespace)::ActionNodeNameHelper::calculateActionNodeName(std::shared_ptr<DB::IQueryTreeNode> const&) @ 0x0000000042e346b2
4. ./ci/tmp/build/./src/Planner/PlannerActionsVisitor.cpp:300: DB::(anonymous namespace)::ActionNodeNameHelper::calculateActionNodeName(std::shared_ptr<DB::IQueryTreeNode> const&) @ 0x0000000042e3561f
5. ./ci/tmp/build/./src/Planner/PlannerActionsVisitor.cpp:172: DB::(anonymous namespace)::ActionNodeNameHelper::calculateActionNodeName(std::shared_ptr<DB::IQueryTreeNode> const&) @ 0x0000000042e346b2
6. ./ci/tmp/build/./src/Planner/PlannerActionsVisitor.cpp:300: DB::(anonymous namespace)::ActionNodeNameHelper::calculateActionNodeName(std::shared_ptr<DB::IQueryTreeNode> const&) @ 0x0000000042e35efe
7. ./ci/tmp/build/./src/Planner/PlannerActionsVisitor.cpp:1095: DB::(anonymous namespace)::PlannerActionsVisitorImpl::visitImpl(std::shared_ptr<DB::IQueryTreeNode>) @ 0x0000000042e49e95
8. ./ci/tmp/build/./src/Planner/PlannerActionsVisitor.cpp:731: DB::PlannerActionsVisitor::visit(DB::ActionsDAG&, std::shared_ptr<DB::IQueryTreeNode>) @ 0x0000000042e30719
9. ./ci/tmp/build/./src/Planner/Utils.cpp:272: DB::buildActionsDAGFromExpressionNode(std::shared_ptr<DB::IQueryTreeNode> const&, std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::PlannerContext> const&, std::unordered_set<DB::QueryTreeNodeWithHash<std::shared_ptr<DB::ColumnNode>, true, true>, std::hash<DB::QueryTreeNodeWithHash<std::shared_ptr<DB::ColumnNode>, true, true>>, std::equal_to<DB::QueryTreeNodeWithHash<std::shared_ptr<DB::ColumnNode>, true, true>>, std::allocator<DB::QueryTreeNodeWithHash<std::shared_ptr<DB::ColumnNode>, true, true>>> const&, bool) @ 0x0000000042e865d9
10. ./ci/tmp/build/./src/Planner/PlannerExpressionAnalysis.cpp:61: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr<DB::IQueryTreeNode> const&, std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::PlannerContext> const&, std::unordered_set<DB::QueryTreeNodeWithHash<std::shared_ptr<DB::ColumnNode>, true, true>, std::hash<DB::QueryTreeNodeWithHash<std::shared_ptr<DB::ColumnNode>, true, true>>, std::equal_to<DB::QueryTreeNodeWithHash<std::shared_ptr<DB::ColumnNode>, true, true>>, std::allocator<DB::QueryTreeNodeWithHash<std::shared_ptr<DB::ColumnNode>, true, true>>> const&, DB::ActionsChain&) @ 0x0000000044084a5d
11. ./ci/tmp/build/./src/Planner/PlannerExpressionAnalysis.cpp:602: DB::buildExpressionAnalysisResult(std::shared_ptr<DB::IQueryTreeNode> const&, std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::PlannerContext> const&, DB::PlannerQueryProcessingInfo const&) @ 0x000000004406c26d
12. ./ci/tmp/build/./src/Planner/Planner.cpp:1918: DB::Planner::buildPlanForQueryNode() @ 0x0000000043eead67
13. ./ci/tmp/build/./src/Planner/Planner.cpp:1664: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000043eda627
14. ./ci/tmp/build/./src/Planner/PlannerJoinTree.cpp:1376: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr<DB::IQueryTreeNode>, std::shared_ptr<DB::IQueryTreeNode> const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr<DB::PlannerContext>&, bool, bool) @ 0x0000000043f7614a
15. ./ci/tmp/build/./src/Planner/PlannerJoinTree.cpp:2638: DB::buildJoinTreeQueryPlan(std::shared_ptr<DB::IQueryTreeNode> const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set<String, std::hash<String>, std::equal_to<String>, std::allocator<String>> const&, std::shared_ptr<DB::PlannerContext>&) @ 0x0000000043f5fa2d
16. ./ci/tmp/build/./src/Planner/Planner.cpp:1893: DB::Planner::buildPlanForQueryNode() @ 0x0000000043ee7c0e
17. ./ci/tmp/build/./src/Planner/Planner.cpp:1664: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000043eda627
18. ./ci/tmp/build/./src/Planner/PlannerJoinTree.cpp:1376: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr<DB::IQueryTreeNode>, std::shared_ptr<DB::IQueryTreeNode> const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr<DB::PlannerContext>&, bool, bool) @ 0x0000000043f7614a
19. ./ci/tmp/build/./src/Planner/PlannerJoinTree.cpp:2638: DB::buildJoinTreeQueryPlan(std::shared_ptr<DB::IQueryTreeNode> const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set<String, std::hash<String>, std::equal_to<String>, std::allocator<String>> const&, std::shared_ptr<DB::PlannerContext>&) @ 0x0000000043f5fa2d
20. ./ci/tmp/build/./src/Planner/Planner.cpp:1893: DB::Planner::buildPlanForQueryNode() @ 0x0000000043ee7c0e
21. ./ci/tmp/build/./src/Planner/Planner.cpp:1664: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000043eda627
22. ./ci/tmp/build/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:359: DB::InterpreterSelectQueryAnalyzer::extractQueryPlan() && @ 0x00000000464ff155
23. ./ci/tmp/build/./src/Storages/StorageView.cpp:184: DB::StorageView::read(DB::QueryPlan&, std::vector<String, std::allocator<String>> const&, std::shared_ptr<DB::StorageSnapshot> const&, DB::SelectQueryInfo&, std::shared_ptr<DB::Context const>, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x0000000053cedb77
24. ./ci/tmp/build/./src/Planner/PlannerJoinTree.cpp:1054: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr<DB::IQueryTreeNode>, std::shared_ptr<DB::IQueryTreeNode> const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr<DB::PlannerContext>&, bool, bool) @ 0x0000000043f85cd6
25. ./ci/tmp/build/./src/Planner/PlannerJoinTree.cpp:2638: DB::buildJoinTreeQueryPlan(std::shared_ptr<DB::IQueryTreeNode> const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set<String, std::hash<String>, std::equal_to<String>, std::allocator<String>> const&, std::shared_ptr<DB::PlannerContext>&) @ 0x0000000043f5fa2d
26. ./ci/tmp/build/./src/Planner/Planner.cpp:1893: DB::Planner::buildPlanForQueryNode() @ 0x0000000043ee7c0e
27. ./ci/tmp/build/./src/Planner/Planner.cpp:1664: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000043eda627
28. ./ci/tmp/build/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:365: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x00000000464fe4dc
29. ./ci/tmp/build/./src/Interpreters/InterpreterInsertQuery.cpp:608: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr<DB::IStorage>) @ 0x00000000463f184a
30. ./ci/tmp/build/./src/Interpreters/InterpreterInsertQuery.cpp:973: DB::InterpreterInsertQuery::execute() @ 0x0000000046403f9d
31. ./ci/tmp/build/./src/Interpreters/InterpreterCreateQuery.cpp:2264: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x0000000046327429
32. ./ci/tmp/build/./src/Interpreters/InterpreterCreateQuery.cpp:1750: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000463012f8
33. ./ci/tmp/build/./src/Interpreters/InterpreterCreateQuery.cpp:2390: DB::InterpreterCreateQuery::execute() @ 0x0000000046333680
34. ./ci/tmp/build/./src/Interpreters/executeQuery.cpp:1731: 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>, std::function<void ()>, DB::QueryResultDetails&) @ 0x00000000471bd9d3
35. ./ci/tmp/build/./src/Interpreters/executeQuery.cpp:2115: DB::executeQuery(std::unique_ptr<DB::ReadBuffer, std::default_delete<DB::ReadBuffer>>, DB::WriteBuffer&, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, DB::QueryFlags, std::optional<DB::FormatSettings> const&, std::function<void (DB::IOutputFormat&, String const&, std::shared_ptr<DB::Context const> const&, std::optional<DB::FormatSettings> const&)>, std::function<void ()>, std::function<void ()>) @ 0x00000000471d16e5
36. ./ci/tmp/build/./src/Interpreters/executeQuery.cpp:1980: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, DB::QueryFlags, std::optional<DB::FormatSettings> const&, std::function<void (DB::IOutputFormat&, String const&, std::shared_ptr<DB::Context const> const&, std::optional<DB::FormatSettings> const&)>, std::function<void ()>, std::function<void ()>) @ 0x00000000471cf9b8
37. ./ci/tmp/build/./src/Interpreters/DDLWorker.cpp:516: DB::DDLWorker::tryExecuteQuery(DB::DDLTaskBase&, std::shared_ptr<zkutil::ZooKeeper> const&, bool) @ 0x0000000045e1823b
38. ./ci/tmp/build/./src/Interpreters/DDLWorker.cpp:684: DB::DDLWorker::processTask(DB::DDLTaskBase&, std::shared_ptr<zkutil::ZooKeeper> const&, bool) @ 0x0000000045e11687
39. ./ci/tmp/build/./src/Databases/DatabaseReplicatedWorker.cpp:466: DB::DatabaseReplicatedDDLWorker::tryEnqueueAndExecuteEntry(DB::DDLLogEntry&, std::shared_ptr<DB::Context const>, bool) @ 0x000000004242dff4
40. ./ci/tmp/build/./src/Databases/DatabaseReplicated.cpp:1314: DB::DatabaseReplicated::tryEnqueueReplicatedDDL(std::shared_ptr<DB::IAST> const&, std::shared_ptr<DB::Context const>, DB::QueryFlags) @ 0x000000004237a705
41. ./ci/tmp/build/./src/Interpreters/InterpreterCreateQuery.cpp:1716: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000463009a0
42. ./ci/tmp/build/./src/Interpreters/InterpreterCreateQuery.cpp:2390: DB::InterpreterCreateQuery::execute() @ 0x0000000046333680
43. ./ci/tmp/build/./src/Interpreters/executeQuery.cpp:1731: 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>, std::function<void ()>, DB::QueryResultDetails&) @ 0x00000000471bd9d3
44. ./ci/tmp/build/./src/Interpreters/executeQuery.cpp:1955: DB::executeQuery(String const&, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000471abd57

Metadata

Metadata

Assignees

No one assigned

    Labels

    fuzzProblem found by one of the fuzzerstestingSpecial 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