-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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/tests: TestRandomSyntaxFunctions failed [array_cat_agg: 9 trailing bytes in encoded value] #109629
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
C-test-failure
Broken test (automatically or manually discovered).
O-rsg
Random Syntax Generator
T-sql-queries
SQL Queries Team
Comments
mgartner
added
the
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
label
Aug 28, 2023
Reduced: SELECT array_cat_agg(ARRAY[(1::INT,), (1::FLOAT8,)]); I have a hunch that we're not correctly type-checking this expression correctly. It should maybe be a type error. |
This was introduced in #108387. It allows
However, the implicit cast from |
mgartner
added a commit
to mgartner/cockroach
that referenced
this issue
Aug 28, 2023
PR cockroachdb#108387 introduced new logic to type-checking that allows nested expressions of a single expression to have different types in some cases when the types can be implicitly casted to a common type. For example, the expression `ARRAY[1::INT, 1::FLOAT8]` would have failed type-checking but is not successfully typed as `[]FLOAT8`. However, cockroachdb#108387 does not add an implicit cast to ensure that each nested expression actually has that type during execution, which causes internal errors in some cases. This commit add the necessary implicit casts. Fixes cockroachdb#109629 There is no release note because the bug is not present in any releases. Release note: None
mgartner
added a commit
to mgartner/cockroach
that referenced
this issue
Aug 30, 2023
PR cockroachdb#108387 introduced new logic to type-checking that allows nested expressions of a single expression to have different types in some cases when the types can be implicitly casted to a common type. For example, the expression `ARRAY[1::INT, 1::FLOAT8]` would have failed type-checking but is not successfully typed as `[]FLOAT8`. However, cockroachdb#108387 does not add an implicit cast to ensure that each nested expression actually has that type during execution, which causes internal errors in some cases. This commit add the necessary implicit casts. Fixes cockroachdb#109629 There is no release note because the bug is not present in any releases. Release note: None
mgartner
added
C-test-failure
Broken test (automatically or manually discovered).
O-rsg
Random Syntax Generator
T-sql-queries
SQL Queries Team
labels
Aug 31, 2023
craig bot
pushed a commit
that referenced
this issue
Aug 31, 2023
109635: sql: fix nested expression type-checking r=mgartner a=mgartner PR #108387 introduced new logic to type-checking that allows nested expressions of a single expression to have different types in some cases when the types can be implicitly casted to a common type. For example, the expression `ARRAY[1::INT, 1::FLOAT8]` would have failed type-checking but is not successfully typed as `[]FLOAT8`. However, #108387 does not add an implicit cast to ensure that each nested expression actually has that type during execution, which causes internal errors in some cases. This commit add the necessary implicit casts. Fixes #109629 There is no release note because the bug is not present in any releases. Release note: None 109704: roachprod: use more recent ubuntu 20.04 images r=RaduBerinde a=RaduBerinde Epic: none Release note: None Co-authored-by: Marcus Gartner <[email protected]> Co-authored-by: Radu Berinde <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
C-test-failure
Broken test (automatically or manually discovered).
O-rsg
Random Syntax Generator
T-sql-queries
SQL Queries Team
Found in a random syntax test here:
Causes the error:
Jira issue: CRDB-31026
The text was updated successfully, but these errors were encountered: