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

Error in DESCRIBE PLAN SELECT COUNT(*) FROM table on running server #8882

Open
nicktobey opened this issue Feb 23, 2025 · 0 comments
Open

Error in DESCRIBE PLAN SELECT COUNT(*) FROM table on running server #8882

nicktobey opened this issue Feb 23, 2025 · 0 comments

Comments

@nicktobey
Copy link
Contributor

Connecting to a running server and running a query of the form DESCRIBE PLAN SELECT COUNT(*) FROM table results in an error:

Error 1105 (HY000): result max1Row iterator returned more than one row

This only happens when connecting to a server, and not when running dolt sql locally.

This seems to be happening because the presence of the COUNT expression causes the analyzer to set the sql.QFlagMax1Row flag, but the DESCRIBE statement produces a row for each line in the plan.

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