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

sql: replace an internal error in EXPLAIN (DISTSQL) and EXPLAIN (VEC) #40803

Merged
merged 1 commit into from
Sep 17, 2019

Conversation

yuzefovich
Copy link
Member

Currently, when we're explaining a query that has a subquery value
of which is needed to construct the physical plan, we error out with
an internal error. This commit replaces that stack trace with a more
user-friendly message saying that explaining such a query is not
supported.

Addresses: #40677.

Release justification: Category 2: Bug fixes and low-risk updates to
new functionality.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: - can you add a test that proves that explain(distsql) works with subqueries that don't have a problem, and a test that proves that explain(distsql) returns an error with subqueries that do have a problem?

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis, @knz, and @rafiss)

Currently, when we're explaining a query that has a subquery value
of which is needed to construct the physical plan, we error out with
an internal error. This commit replaces that stack trace with a more
user-friendly message saying that explaining such a query is not
supported.

Release justification: Category 2: Bug fixes and low-risk updates to
new functionality.

Release note: None
@yuzefovich
Copy link
Member Author

Good idea, added.

TFTR!

bors r=jordanlewis

craig bot pushed a commit that referenced this pull request Sep 17, 2019
40803: sql: replace an internal error in EXPLAIN (DISTSQL) and EXPLAIN (VEC) r=jordanlewis a=yuzefovich

Currently, when we're explaining a query that has a subquery value
of which is needed to construct the physical plan, we error out with
an internal error. This commit replaces that stack trace with a more
user-friendly message saying that explaining such a query is not
supported.

Addresses: #40677.

Release justification: Category 2: Bug fixes and low-risk updates to
new functionality.

Release note: None

Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Sep 17, 2019

Build succeeded

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

Successfully merging this pull request may close these issues.

3 participants