Skip to content

Commit

Permalink
Fix JDBC+Oservation test
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Apr 20, 2024
1 parent 91f79a6 commit e3ade6e
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1045,9 +1045,8 @@ object JdbcUtils extends Logging with SQLConfHelper {
case Some(n) if n < df.rdd.getNumPartitions => df.coalesce(n)
case _ => df
}
repartitionedDF.rdd.foreachPartition { iterator =>
savePartition(None, iterator, rddSchema, insertStmt, batchSize, dialect,
isolationLevel, options)
repartitionedDF.foreachPartition { iterator: Iterator[Row] => savePartition(
None, iterator, rddSchema, insertStmt, batchSize, dialect, isolationLevel, options)
}
}

Expand Down Expand Up @@ -1085,9 +1084,9 @@ object JdbcUtils extends Logging with SQLConfHelper {
case Some(n) if n < df.rdd.getNumPartitions => df.coalesce(n)
case _ => df
}
repartitionedDF.rdd.foreachPartition { iterator => upsertPartition(
table, iterator, rddSchema, tableSchema, isCaseSensitive, batchSize,
dialectWithMerge, isolationLevel, options)
repartitionedDF.foreachPartition { iterator: Iterator[Row] => upsertPartition(
table, iterator, rddSchema, tableSchema, isCaseSensitive, batchSize, dialectWithMerge,
isolationLevel, options)
}
}

Expand Down

0 comments on commit e3ade6e

Please sign in to comment.