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 Jan 23, 2024
1 parent 60e41ca commit 10fd22b
Showing 1 changed file with 5 additions and 6 deletions.
Expand Up @@ -968,9 +968,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 @@ -1008,9 +1007,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 10fd22b

Please sign in to comment.