Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-9565 Spark SQL 1.5.0 QA/testing umbrella
  3. SPARK-9949

TakeOrderedAndProject returns wrong output attributes when project is pushed in to it

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.4.2, 1.5.0
    • SQL
    • None
    • Spark 1.5 doc/QA sprint

    Description

      In TakeOrderedAndProject, we have

      case class TakeOrderedAndProject(
          limit: Int,
          sortOrder: Seq[SortOrder],
          projectList: Option[Seq[NamedExpression]],
          child: SparkPlan) extends UnaryNode {
      
        override def output: Seq[Attribute] = child.output
      

      When projectList is set, we should use its attributes as the output.

      Attachments

        Activity

          People

            yhuai Yin Huai
            yhuai Yin Huai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: