Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-4076 Schema followups
  3. BEAM-6772

Select transform has non-intuitive semantics

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.12.0
    • Component/s: sdk-java-core
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                reuvenlax Reuven Lax
                Reporter:
                reuvenlax Reuven Lax
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 12h 10m
                  12h 10m