Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-25716

Project and Aggregate generate valid constraints with unnecessary operation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • SQL
    • None

    Description

      Project logical operator generates valid constraints using two opposite operations. It substracts child constraints from all constraints, than union child constraints again. I think it may be not necessary.
      Aggregate operator has the same problem with Project.

      for example:

      in LogicalPlan.getAliasedConstraints(), return:

      allConstraints -- child.constraints

      in Project.validConstraints():

      child.constraints.union(getAliasedConstraints(projectList))

      Attachments

        Activity

          People

            SongYadong SongYadong
            SongYadong SongYadong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified