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

[SQL] Plan optimizer eliminates aliasing in trivial projections

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • 2.11.0
    • 2.12.0
    • dsl-sql
    • 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

              kanterov Gleb Kanterov
              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