-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-26168][SQL] Update the code comments in Expression and Aggregate #23135
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
Conversation
| * @param aggregateExpressions expressions for a project list, which could contain | ||
| * [[org.apache.spark.sql.catalyst.expressions.aggregate.AggregateFunction]]s. | ||
| * | ||
| * Note: Currently, aggregateExpressions correspond to both [[AggregateExpression]] and the output |
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.
It is not clear what “resultExpressions” mean.
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.
Removed it from the description.
|
Test build #99246 has finished for PR 23135 at commit
|
| * - [[HigherOrderFunction]]: a common base trait for higher order functions that take one or more | ||
| * (lambda) functions and applies these to some objects. The function | ||
| * produces a number of variables which can be consumed by some lambda | ||
| * function. |
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.
nit: function -> functions ?
| * interpreted mode. | ||
| * - [[NullIntolerant]]: an expression that is null intolerant (i.e. any null input will result in | ||
| * null output). | ||
| * - [[NonSQLExpression]]: a common base trait for the expressions that doesn't have SQL |
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.
nit: doesn't -> do not
| * produces a number of variables which can be consumed by some lambda | ||
| * function. | ||
| * - [[NamedExpression]]: An [[Expression]] that is named. | ||
| * - [[TimeZoneAwareExpression]]: A common base trait for time zone aware expressions. |
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.
shall we also mention SubqueryExpression?
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.
Added.
|
Test build #99248 has finished for PR 23135 at commit
|
|
LGTM |
1 similar comment
|
LGTM |
|
Test build #99257 has finished for PR 23135 at commit
|
|
thanks, merging to master! |
## What changes were proposed in this pull request? This PR is to improve the code comments to document some common traits and traps about the expression. ## How was this patch tested? N/A Closes apache#23135 from gatorsmile/addcomments. Authored-by: gatorsmile <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
What changes were proposed in this pull request?
This PR is to improve the code comments to document some common traits and traps about the expression.
How was this patch tested?
N/A