Skip to content

Commit

Permalink
Reflect review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartSaVioR committed Sep 25, 2019
1 parent c3b59c6 commit 0d9eab9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ case class LocalTableScanExec(
"numOutputRows" -> SQLMetrics.createMetric(sparkContext, "number of output rows"))

@transient private lazy val unsafeRows: Array[InternalRow] = {
if (rows == null || rows.isEmpty) {
assert(rows != null)
if (rows.isEmpty) {
Array.empty
} else {
val proj = UnsafeProjection.create(output, output)
Expand Down

0 comments on commit 0d9eab9

Please sign in to comment.