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

`TreeNode.mapChildren` should only apply to the children node.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.1
    • 2.1.2, 2.2.0
    • SQL
    • None

    Description

      Just as the function name and comments of `TreeNode.mapChildren` mentioned, the function should be apply to all currently node children. So, the follow code should judge whether it is the children node.

      https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/trees/TreeNode.scala#L342

      Attachments

        Activity

          People

            coneyliu Xianyang Liu
            coneyliu Xianyang Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: