-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Random improvements to random things in random places #25954
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
Changes from all commits
fbfa6f8
4dbadb6
1252aed
c8d70df
35f2ac2
6723bd5
f46b9d2
0bccefd
784cb11
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -304,9 +304,11 @@ public Result apply(ValuesNode valuesNode, Captures captures, Context context) | |
| Expression rewritten; | ||
| if (row instanceof Row value) { | ||
| // preserve the structure of row | ||
| rewritten = new Row(value.items().stream() | ||
| .map(item -> rewriter.rewrite(item, context)) | ||
| .collect(toImmutableList())); | ||
| ImmutableList.Builder<Expression> rowValues = ImmutableList.builderWithExpectedSize(value.items().size()); | ||
|
||
| for (Expression item : value.items()) { | ||
| rowValues.add(rewriter.rewrite(item, context)); | ||
| } | ||
| rewritten = new Row(rowValues.build()); | ||
| } | ||
| else { | ||
| rewritten = rewriter.rewrite(row, context); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrapping parseTypeSignature failures in a generic RuntimeException loses the original semanticException and TYPE_MISMATCH error code. Consider throwing a semanticException with the appropriate error code to preserve user-facing diagnostics.