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
Addressed comments
  • Loading branch information
tdas committed Feb 7, 2018
commit c3508e9094aced3dbbbbc52029bc6d5bc6fc955e
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ case class MemoryStream[A : Encoder](id: Int, sqlContext: SQLContext)
}

private def generateDebugString(
blocks: Seq[UnsafeRow],
rows: Seq[UnsafeRow],
startOrdinal: Int,
endOrdinal: Int): String = {
val fromRow = encoder.resolveAndBind().fromRow _
s"MemoryBatch [$startOrdinal, $endOrdinal]: " +
s"${blocks.map(row => fromRow(row)).mkString(", ")}"
s"${rows.map(row => fromRow(row)).mkString(", ")}"
}

override def commit(end: OffsetV2): Unit = synchronized {
Expand Down