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
Only call currentRow.numFields once per loop
  • Loading branch information
JoshRosen committed Jan 3, 2020
commit e05de150813b639929c18af1df09ec718d2d16fc
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ private[parquet] class ParquetRowConverter(

override def start(): Unit = {
var i = 0
while (i < currentRow.numFields) {
val numFields = currentRow.numFields
while (i < numFields) {
currentRow.setNullAt(i)
i += 1
}
Expand Down