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

Refactor the optimizer plan validation to decouple validateSchemaOutput and validateExprIdUniqueness

    XMLWordPrintableJSON

Details

    Description

      Currently, the expressionIDUniqueness validation is closely coupled with output schema validation. 

      https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LogicalPlan.scala#L403C7-L411C8

      Some refactoring can improve readability and reuse.

      Attachments

        Issue Links

          Activity

            People

              xiliang678 Xi Liang
              xiliang678 Xi Liang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: