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
internal error: failed to parse locale "": language: tag is not well-formed #101418
Comments
Hello, I am Blathers. I am here to help you get the issue triaged. Hoot - a bug! Though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here. I have CC'd a few people who may be able to assist you:
If we have not gotten back to your issue within a few business days, you can try the following:
🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
I hit this issue trying to get #101068 over the line as well. |
Simpler repro:
|
Postgres throws this error:
|
Actually here's a repro that works in PG but throws this error in CRDB:
|
If we have a nested case expression where the inner case expression is ambiguous the AnyCollatedString type would be selected and it would leak to the execution engine causing the 'failed to parse locale ""' internal error. Instead have the overload type checker remember if it saw a AnyCollatedString type and go back and repair types if a concrete type is found in any of the other exprs. Release note: none Epic: none Fixes: cockroachdb#101418
108199: sql: fix overload type checking of nested case expressions r=mgartner a=cucaroach If we have a nested case expression where the inner case expression is ambiguous the AnyCollatedString type would be selected and it would leak to the execution engine causing the 'failed to parse locale ""' internal error. Instead have the overload type checker remember if it saw a AnyCollatedString type and go back and repair types if a concrete type is found in any of the other exprs. Release note: none Epic: none Fixes: #101418 Co-authored-by: Tommy Reilly <treilly@cockroachlabs.com>
If we have a nested case expression where the inner case expression is ambiguous the AnyCollatedString type would be selected and it would leak to the execution engine causing the 'failed to parse locale ""' internal error. Instead have the overload type checker remember if it saw a AnyCollatedString type and go back and repair types if a concrete type is found in any of the other exprs. Release note (bug fix): Fix a bug with collated string type checking with nested case expressions where inner case had no explicit collated type. Epic: none Fixes: #101418 Release justification: Low risk fix for edge case SQL construct.
Describe the problem
Please describe the issue you observed, and any steps we can take to reproduce it:
The following program triggers an internal error:
The error message:
To Reproduce
I build CockroachDB from last commit version (678cfd4), run the program with CLI
Expected behavior
No error.
Environment:
Jira issue: CRDB-26936
The text was updated successfully, but these errors were encountered: