-
Notifications
You must be signed in to change notification settings - Fork 643
[DOC] Add Nested function SQL documentation - autoclosed #5944
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
Signed-off-by: Melissa Vagi <[email protected]>
|
Per communication with @anirudha, this content should go with how to work with JSON data. See the following notes:
|
|
looks good to me. |
natebower
left a comment
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.
@vagimeli Please see my comments and changes and let me know if you have any questions. Thanks!
|
|
||
| ### Syntax | ||
|
|
||
| The `field_expression` parameter is required. The `path_expression` parameter is optional. Dot notation is used to show the nesting level for both the `field_expression` and `path_expression` parameters. For example, `nestedObj.innerFieldName` denotes a field nested one level. If the user does not provide the `path_expression` parameter, the path value is generated dynamically. For example, the field `user.office.cubicle` would dynamically generate the path `user.office`. The syntax is shown in the following example: |
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.
Should a preposition come between "nested" and "one"?
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.
Revised to read "nested one level deep"
|
|
||
| The `nested` function in a SQL `WHERE` clause offers two syntax options for filtering a nested field with a literal value, both achieving the same outcome. The two options are described in the following sections. | ||
|
|
||
| ### Boolean condition inside the nested 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.
Should this be H4?
| ``` | ||
| {% include copy.html %} | ||
|
|
||
| ### Nested function with predicate expression and literal expression |
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.
Should this be H4?
|
|
||
| ## Using the function in aggregation queries | ||
|
|
||
| Nested fields can be aggregated in the `GROUP BY` clause and filtered in the `HAVING` clause using the `nested` function within SQL queries. |
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.
"by" using?
|
|
||
| #### Example query | ||
|
|
||
| The following are examples of a query using nested queries in the `GROUP BY` and `HAVING` clauses: |
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.
"The following example query uses" (singular)?
|
|
||
| #### Example query | ||
|
|
||
| The following are examples of a query using nested queries in the `ORDER BY` clause, a sample dataset, and the query results: |
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.
"The following example query uses" (singular)?
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Melissa Vagi <[email protected]>
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Melissa Vagi <[email protected]>
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Melissa Vagi <[email protected]>
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Melissa Vagi <[email protected]>
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Melissa Vagi <[email protected]>
Signed-off-by: Melissa Vagi <[email protected]>
Signed-off-by: Melissa Vagi <[email protected]>
Signed-off-by: Melissa Vagi <[email protected]>
Signed-off-by: Melissa Vagi <[email protected]>
Signed-off-by: Melissa Vagi <[email protected]>
|
✔️ This issue was automatically closed by Mend because the errors have been resolved. |

Description
Copy dev authored content to new branch and perform doc review; creates nested function doc
Issues Resolved
See PR #4308
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.