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

Join‘ verbose string didn't contains JoinType

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.4.0
    • SQL
    • None

    Description

      Current verbose string don't have joinType

      (5) BroadcastHashJoin [codegen id : 8]
      Left keys [1]: [ss_sold_date_sk#3]
      Right keys [1]: [d_date_sk#5]
      Join condition: None
      
      override def verboseStringWithOperatorId(): String = {
          val joinCondStr = if (condition.isDefined) {
            s"${condition.get}"
          } else "None"
          if (leftKeys.nonEmpty || rightKeys.nonEmpty) {
            s"""
               |$formattedNodeName
               |${ExplainUtils.generateFieldString("Left keys", leftKeys)}
               |${ExplainUtils.generateFieldString("Right keys", rightKeys)}
               |${ExplainUtils.generateFieldString("Join condition", joinCondStr)}
               |""".stripMargin
          } else {
            s"""
               |$formattedNodeName
               |${ExplainUtils.generateFieldString("Join condition", joinCondStr)}
               |""".stripMargin
          }
        }
      

      Attachments

        Activity

          People

            angerszhuuu angerszhu
            angerszhuuu angerszhu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: