generated from streamnative/pulsar-io-template
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat][Proposal-2] Support including the topic name to the metadata(#836
) (#862) ### Motivation Currently, we don't include the topic name to the metadata. And there is not intuitive workaround for it. This proposal introduces a new configuration `includeTopicName` to the Cloud Storage sink connector. When activated(`true`), the connector will include the topic name to the metadata in the sink file. ### Modifications Introduce a new configuration `includeTopicToMetadata` to support including the Pulsar topic name into the metadata. The new data format of the cloud storage format would be like: ```json { "key": "value", "__message_metadata__": { "messageId": "CAgQADAA", "topic": "persistent://public/default/test-s3", "properties": {} } } ``` A new key, `topic`, would be added to the metadata, containing the Pulsar topic name. (cherry picked from commit b2b28dd)
- Loading branch information
1 parent
3f7f157
commit 6640875
Showing
6 changed files
with
45 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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