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

Select transform has non-intuitive semantics

Details

    • Sub-task
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.12.0
    • sdk-java-core

    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

              reuvenlax Reuven Lax
              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