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
Fix JDBC+Oservation test
  • Loading branch information
EnricoMi committed Apr 28, 2025
commit eb9571b37f80190331236ebe5f3d22dadb0e692b
Original file line number Diff line number Diff line change
Expand Up @@ -1065,9 +1065,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 @@ -1105,9 +1104,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