Sigma-Ma commented on code in PR #163:
URL: https://github.com/apache/hbase-connectors/pull/163#discussion_r3985478386
##########
spark4/hbase-spark4/src/main/scala/org/apache/hadoop/hbase/spark/HBaseContext.scala:
##########
@@ -310,12 +327,13 @@ class HBaseContext(@transient val sc: SparkContext,
@transient val config: Confi
val table = connection.getTable(TableName.valueOf(tName))
try {
val mutationList = new java.util.ArrayList[Mutation]()
- iterator.foreach { t =>
- mutationList.add(f(t))
- if (mutationList.size >= batchSize) {
- table.batch(mutationList, null)
- mutationList.clear()
- }
+ iterator.foreach {
+ t =>
+ mutationList.add(f(t))
+ if (mutationList.size >= batchSize) {
+ table.batch(mutationList, null)
+ mutationList.clear()
+ }
Review Comment:
Done. I reverted the unrelated formatting changes and restored the
formatting-only test changes to match master.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]