-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-29248][SQL] Pass in number of partitions to WriteBuilder #25945
Changes from all commits
280986c
11c6dd8
c6b85f9
f3dba5e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,8 +36,8 @@ class MicroBatchWrite(eppchId: Long, val writeSupport: StreamingWrite) extends B | |
writeSupport.abort(eppchId, messages) | ||
} | ||
|
||
override def createBatchWriterFactory(): DataWriterFactory = { | ||
new MicroBatchWriterFactory(eppchId, writeSupport.createStreamingWriterFactory()) | ||
override def createBatchWriterFactory(numPartitions: Int): DataWriterFactory = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sorry to come up with this at the last minute: can we create a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No problem! Since we still want to move forward with the interface-based approach, I've decided to evolve #25990 to include both the |
||
new MicroBatchWriterFactory(eppchId, writeSupport.createStreamingWriterFactory(numPartitions)) | ||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
later on can we continue the work in #25990 ? It still has value to give stronger guarantees. So that implementations don't need to do check like this.