Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-6810

[SQL] Plan optimizer eliminates aliasing in trivial projections

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.11.0
    • Fix Version/s: 2.12.0
    • Component/s: dsl-sql
    • Labels:
      None

      Description

      Trivial programs project precisely their input fields, without dropping or re-ordering them. The simplest example is:

      SELECT * FROM PCOLLECTION
      

      Given input PCollection with a schema `c_int64: BIGINT` following query should result in PCollection with a schema `abc: BIGINT`, however, due to a bug in query optimization, it results in `c_int64: BIGINT`

      SELECT c_int64 as abc FROM PCOLLECTION
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kanterov Gleb Kanterov
                Reporter:
                kanterov Gleb Kanterov
              • 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 - 50m
                  50m