[Feature][Connector-V2] Support Pulsar sink multi-table writes#10670
Open
Muktha9491 wants to merge 2 commits intoapache:devfrom
Open
[Feature][Connector-V2] Support Pulsar sink multi-table writes#10670Muktha9491 wants to merge 2 commits intoapache:devfrom
Muktha9491 wants to merge 2 commits intoapache:devfrom
Conversation
414d52f to
762a34c
Compare
Author
|
The current CI failure is unrelated to this Pulsar PR. The failing test is: It fails in Local verification for the Pulsar connector changes passed:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose of this pull request
This PR adds multi-table sink support for the Pulsar connector.
The Pulsar sink can now route records dynamically to different Pulsar topics
based on
SeaTunnelRow.getTableId(). Each topic maintains a dedicated Pulsarproducer in a producer map, allowing the connector to support multiple tables
in a single pipeline.
This change implements
SupportMultiTableSinkfor the Pulsar connector andadds
SupportMultiTableSinkWriter<Void>support in the writer.Closes #10426
Does this PR introduce any user-facing change?
Yes.
Previously, the Pulsar sink only supported writing records to a single topic.
With this change:
SeaTunnelRow.getTableId()to different Pulsar topicstopicoption remains supported for single-table pipelinestopicis now optional for multi-table pipelines when rows already contain table idspartition_key_fieldssupport is preservedThe English connector documentation was also updated to describe the new multi-table behavior.
How was this patch tested?
Tested locally with:
mvn -pl seatunnel-connectors-v2/connector-pulsar -am spotless:apply mvn -pl seatunnel-connectors-v2/connector-pulsar -am -q -DskipTests verify mvn -pl seatunnel-connectors-v2/connector-pulsar -Dtest=PulsarSinkWriterTest test