Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ case class CsvToStructs(
@transient
lazy val converter = (rows: Iterator[InternalRow]) => {
if (rows.hasNext) {
rows.next()
val result = rows.next
val result = rows.next()
// CSV's parser produces one record only.
assert(!rows.hasNext)
result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package org.apache.spark.sql.catalyst.csv

import org.apache.spark.SparkFunSuite

class CSVExpressionUtilsSuite extends SparkFunSuite {
class CSVExprUtilsSuite extends SparkFunSuite {
test("Can parse escaped characters") {
assert(CSVExprUtils.toChar("""\t""") === '\t')
assert(CSVExprUtils.toChar("""\r""") === '\r')
Expand Down