Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多表关联查询执行异常(超过两个表)。 #405

Closed
zhangtiegang2014 opened this issue Nov 22, 2024 · 3 comments
Closed

多表关联查询执行异常(超过两个表)。 #405

zhangtiegang2014 opened this issue Nov 22, 2024 · 3 comments
Labels
need more information Please provide sufficient information to assist in reproducing and diagnosing the issue no-issue-activity

Comments

@zhangtiegang2014
Copy link

./brokerctl run "select min(ps_supplycost) from partsupp, supplier, nation where ps_suppkey = s_suppkey and s_nationkey = n_nationkey and n_name = 'BRAZIL';" --project-id "demo" --host http://localhost:8071 --timeout 30

Error: run query: DoQuery response: {
"status": {
"code": 320,
"message": "RunExecutionPlan run jobs(586ff267-a894-11ef-922a-0242ac120006) failed, catch std::exception=[engine/datasource/odbc_adaptor.cc:44] catch unexpected Poco::Data::DataException: MySQL: [MySQL]: [Comment]: mysql_stmt_prepare error\t[mysql_stmt_error]: Unknown column 'supplier.S_NATIONKEY' in 'on clause'\t[mysql_stmt_errno]: 1054\t[mysql_stmt_sqlstate]: 42S22\t[statemnt]: select min(partsupp.PS_SUPPLYCOST) as expr_17 from alice.partsupp join (select nation.N_NAME,nation.N_NATIONKEY from alice.nation where nation.N_NAME='BRAZIL') as t_1 on supplier.S_NATIONKEY=t_1.N_NATIONKEY"
}
}
超过两个表关联查询时都会报错,即使所有表都在同一方,求解答。

@tongke6 tongke6 added the need more information Please provide sufficient information to assist in reproducing and diagnosing the issue label Nov 25, 2024
@tongke6
Copy link
Collaborator

tongke6 commented Nov 25, 2024

@zhangtiegang2014 可以提供更多的信息帮助我们理解这个问题吗?

包括但不限于表的 schema,以及 broker 和 engine 的日志?如果有可以复现的步骤说明更好了

Copy link

Stale issue message. Please comment to remove stale tag. Otherwise this issue will be closed soon.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more information Please provide sufficient information to assist in reproducing and diagnosing the issue no-issue-activity
Projects
None yet
Development

No branches or pull requests

2 participants