1. [SPARK-25644][SS] Fix java foreachBatch in DataStreamWriter (details)
Commit 7dcc90fbb8dc75077819a5d8c42652f0c84424b5 by zsxwing
[SPARK-25644][SS] Fix java foreachBatch in DataStreamWriter
## What changes were proposed in this pull request?
The java `foreachBatch` API in `DataStreamWriter` should accept
`java.lang.Long` rather `scala.Long`.
## How was this patch tested?
New java test.
Closes #22633 from zsxwing/fix-java-foreachbatch.
Authored-by: Shixiong Zhu <> Signed-off-by: Shixiong
Zhu <>
The file was addedsql/core/src/test/java/test/org/apache/spark/sql/streaming/
The file was modifiedsql/core/src/main/scala/org/apache/spark/sql/streaming/DataStreamWriter.scala (diff)