Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' of github.com:apache/spark into gen_defer
Conflicts:
	sql/core/src/main/scala/org/apache/spark/sql/execution/WholeStageCodegen.scala
  • Loading branch information
Davies Liu committed Feb 23, 2016
commit 4faf5f95aa04473a45a9387b418303323e4565b7
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ case class InputAdapter(child: SparkPlan) extends LeafNode with CodegenSupport {
ctx.currentVars = null
val columns = exprs.map(_.gen(ctx))
s"""
| while (!shouldStop() && input.hasNext()) {
| InternalRow $row = (InternalRow) input.next();
| while (!shouldStop() && $input.hasNext()) {
| InternalRow $row = (InternalRow) $input.next();
| ${consume(ctx, columns).trim}
| }
""".stripMargin
Expand Down Expand Up @@ -371,7 +371,7 @@ case class WholeStageCodegen(plan: CodegenSupport, children: Seq[SparkPlan])
if (row != null) {
// There is an UnsafeRow already
s"""
|currentRows.add($row.copy());
|append($row.copy());
""".stripMargin
} else {
assert(input != null)
Expand All @@ -386,12 +386,12 @@ case class WholeStageCodegen(plan: CodegenSupport, children: Seq[SparkPlan])
s"""
|$evaluateInputs
|${code.code.trim}
|currentRows.add(${code.value}.copy());
|append(${code.value}.copy());
""".stripMargin
} else {
// There is no columns
s"""
|currentRows.add(unsafeRow);
|append(unsafeRow);
""".stripMargin
}
}
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.