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

[Bug] Fe http api response "Select statement must not embed another statement" #45527

Open
2 of 3 tasks
comodohusky opened this issue Dec 17, 2024 · 0 comments
Open
2 of 3 tasks

Comments

@comodohusky
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Version

doris version : 2.1.6

What's Wrong?

When using fe http api to get _query_plan, I found that the "distributed by random buckets auto" would respond "Select statement must not embed another statement".

Table Structure

create table `test6`
(
    `id`    int null,
    `time`  date null,
    `name`  varchar(10) null,
    `count` int sum null
) engine=olap
aggregate key(`id`, `time`, `name`)
distributed by random buckets auto
properties (
"replication_allocation" = "tag.location.default: 1"
);

HTTP Request

POST http://FE_IP:HTTP_PORT/api/test/test6/_query_plan
{"sql": "select * from test.test6;"}

Response Code

{
  "msg": "success",
  "code": 0,
  "data": {
    "exception": "Select statement must not embed another statement",
    "status": 400
  },
  "count": 0
}

What You Expected?

What is the cause of this problem? How can I avoid it?

How to Reproduce?

create table `test6`
(
    `id`    int null,
    `time`  date null,
    `name`  varchar(10) null,
    `count` int sum null
) engine=olap
aggregate key(`id`, `time`, `name`)
distributed by random buckets auto
properties (
"replication_allocation" = "tag.location.default: 1"
);
curl -X POST -u 'root:' -H 'Content-Type:application/json' 'http://fe_host:http_port/api/test/test6/_query_plan' -d '{"sql": "select * from test.test6;"}'

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant