[ https://issues.apache.org/jira/browse/BEAM-6772?focusedWorklogId=220154&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-220154 ]
ASF GitHub Bot logged work on BEAM-6772: ---------------------------------------- Author: ASF GitHub Bot Created on: 28/Mar/19 16:59 Start Date: 28/Mar/19 16:59 Worklog Time Spent: 10m Work Description: reuvenlax commented on issue #8006: [BEAM-6772] Change Select semantics to match what a user expects URL: https://github.com/apache/beam/pull/8006#issuecomment-477683577 @kennknowles and I discussed the array issue. We both think that the best approach is probably to distribute out array selects. However there are other options that should be discussed (e.g. completely unnesting arrays whenever a select happens), so we think this discussion should be brought to the dev list. This PR I believe is generally an improvement, so (assuming other comments are resolved) I think we should merge it and address array select semantics separately. ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 220154) Time Spent: 10h (was: 9h 50m) > Select transform has non-intuitive semantics > -------------------------------------------- > > Key: BEAM-6772 > URL: https://issues.apache.org/jira/browse/BEAM-6772 > Project: Beam > Issue Type: Sub-task > Components: sdk-java-core > Reporter: Reuven Lax > Assignee: Reuven Lax > Priority: Major > Time Spent: 10h > Remaining Estimate: 0h > > Consider the following schema: > User: > name: STRING > location: Location > > Location: > latitude: DOUBLE > longitude: DOUBLE > > If you apply Select.fieldNames("location"), most users expect to get back a > row matching the Location schema. Instead you get back an outer schema with a > single location field in it. Select should instead unnest the output up to > the point where multiple fields are selected. -- This message was sent by Atlassian JIRA (v7.6.3#76005)