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

release-20.1: sql: fix internal error when trying to parse strings as arrays #59066

Merged

Conversation

RaduBerinde
Copy link
Member

@RaduBerinde RaduBerinde commented Jan 15, 2021

Backport 1/1 commits from #52416.

Fixes #59024.

/cc @cockroachdb/release


The parse-constant-as-type code was allowing a desired type of Array[Any], and
we can't parse elements as Any. This resulted in an internal error, rather
than a normal query error.

Fixes #52134.

Release note (bug fix): Fixed an internal error involving string literals used
as arrays.

The parse-constant-as-type code was allowing a desired type of `Array[Any]`, and
we can't parse elements as `Any`. This resulted in an internal error, rather
than a normal query error.

Fixes cockroachdb#52134.

Release note (bug fix): Fixed an internal error involving string literals used
as arrays.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

:lgtm:

nit: maybe add the new issue #59024 into the PR description.

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @otan)

@RaduBerinde
Copy link
Member Author

TFTR, done!

@RaduBerinde RaduBerinde merged commit d1fe91c into cockroachdb:release-20.1 Jan 15, 2021
@RaduBerinde RaduBerinde deleted the backport20.1-52416 branch January 15, 2021 21:00
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