Details
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.