[
https://issues.apache.org/jira/browse/BEAM-9300?focusedWorklogId=394484&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-394484
]
ASF GitHub Bot logged work on BEAM-9300:
----------------------------------------
Author: ASF GitHub Bot
Created on: 27/Feb/20 21:53
Start Date: 27/Feb/20 21:53
Worklog Time Spent: 10m
Work Description: amaliujia commented on pull request #10967: [BEAM-9300]
convert struct literal in ZetaSQL
URL: https://github.com/apache/beam/pull/10967#discussion_r385393357
##########
File path:
sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/translation/ExpressionConverter.java
##########
@@ -962,20 +980,28 @@ private RexNode
convertResolvedParameter(ResolvedParameter parameter) {
}
private RexNode convertResolvedStructFieldAccess(ResolvedGetStructField
resolvedGetStructField) {
- return rexBuilder()
- .makeFieldAccess(
- convertRexNodeFromResolvedExpr(resolvedGetStructField.getExpr()),
- (int) resolvedGetStructField.getFieldIdx());
+ RexNode referencedExpr =
convertRexNodeFromResolvedExpr(resolvedGetStructField.getExpr());
+ return convertResolvedStructFieldAccessInternal(
Review comment:
I have lost some of my memory on this code path:
just a question: does this work with deep nested ROW? E.g.
`ROW(ROW(ROW(...)..)...)`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 394484)
Time Spent: 40m (was: 0.5h)
> parse struct literal in ZetaSQL
> -------------------------------
>
> Key: BEAM-9300
> URL: https://issues.apache.org/jira/browse/BEAM-9300
> Project: Beam
> Issue Type: New Feature
> Components: dsl-sql-zetasql
> Reporter: Kyle Weaver
> Assignee: Kyle Weaver
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> https://github.com/apache/beam/blob/b02a325409d55f1ecb7f9fb6ecc4f60a974c810d/sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/translation/ExpressionConverter.java#L569
--
This message was sent by Atlassian Jira
(v8.3.4#803005)