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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.1.2, 2.2.0
    • Component/s: SQL
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: