Skip to content

Commit 6b19f57

Browse files
committed
Replace an unnecessarily partial function with a "total" function
1 parent e5e60ad commit 6b19f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetRowConverter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private[parquet] class ParquetRowConverter(
183183
// Converters for each field.
184184
private val fieldConverters: Array[Converter with HasParentContainerUpdater] = {
185185
parquetType.getFields.asScala.map {
186-
case parquetField =>
186+
parquetField =>
187187
val fieldIndex = catalystType.fieldIndex(parquetField.getName)
188188
val catalystField = catalystType(fieldIndex)
189189
// Converted field value should be set to the `fieldIndex`-th cell of `currentRow`

0 commit comments

Comments
 (0)