You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "akulabs8 (via GitHub)" <gi...@apache.org> on 2025/02/09 20:23:33 UTC

[PR] [improve] RabbitMq connector options [seatunnel]

akulabs8 opened a new pull request, #8633:
URL: https://github.com/apache/seatunnel/pull/8633

   <!--
   
   Thank you for contributing to SeaTunnel! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   ## Contribution Checklist
     - Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/seatunnel/issues).
     - Name the pull request in the form "[Feature] [component] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
     - Minor fixes should be named following this pattern: `[hotfix] [docs] Fix typo in README.md doc`.
   -->
   
   ### Purpose of this pull request
   subtask of https://github.com/apache/seatunnel/issues/8576
   <!-- Describe the purpose of this pull request. For example: This pull request adds checkstyle plugin.-->
   
   
   ### Check list
   
   * [ ] If any new Jar binary package adding in your PR, please add License Notice according
     [New License Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/contribution/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
   * [ ] If you are contributing the connector code, please check that the following files are updated:
     1. Update [plugin-mapping.properties](https://github.com/apache/seatunnel/blob/dev/plugin-mapping.properties) and add new connector information in it
     2. Update the pom file of [seatunnel-dist](https://github.com/apache/seatunnel/blob/dev/seatunnel-dist/pom.xml)
     3. Add ci label in [label-scope-conf](https://github.com/apache/seatunnel/blob/dev/.github/workflows/labeler/label-scope-conf.yml)
     4. Add e2e testcase in [seatunnel-e2e](https://github.com/apache/seatunnel/tree/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/)
     5. Update connector [plugin_config](https://github.com/apache/seatunnel/blob/dev/config/plugin_config)
   * [ ] Update the [`release-note`](https://github.com/apache/seatunnel/blob/dev/release-note.md).


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve] RabbitMq connector options [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8633:
URL: https://github.com/apache/seatunnel/pull/8633#issuecomment-3066302663

   This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve] RabbitMq connector options [seatunnel]

Posted by "liunaijie (via GitHub)" <gi...@apache.org>.
liunaijie commented on code in PR #8633:
URL: https://github.com/apache/seatunnel/pull/8633#discussion_r1948303509


##########
seatunnel-connectors-v2/connector-rabbitmq/src/main/java/org/apache/seatunnel/connectors/seatunnel/rabbitmq/config/RabbitmqOptions.java:
##########
@@ -36,7 +36,7 @@
 @Setter
 @Getter
 @AllArgsConstructor
-public class RabbitmqConfig implements Serializable {

Review Comment:
   I think we should split `Config` and `Options` into two classes.
   The Options class is used to record the parameters we can pass from the configuration file (external).
   The `RabbitmqConfig` here is a class use to pass parameteres internal.  
   
   
   So, I think we need to split them. Please share your thoughts with me.
   
   



-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve] RabbitMq connector options [seatunnel]

Posted by "akulabs8 (via GitHub)" <gi...@apache.org>.
akulabs8 commented on code in PR #8633:
URL: https://github.com/apache/seatunnel/pull/8633#discussion_r1951290740


##########
seatunnel-connectors-v2/connector-rabbitmq/src/main/java/org/apache/seatunnel/connectors/seatunnel/rabbitmq/config/RabbitmqOptions.java:
##########
@@ -36,7 +36,7 @@
 @Setter
 @Getter
 @AllArgsConstructor
-public class RabbitmqConfig implements Serializable {

Review Comment:
   I didnt get it, could you please explain using an example



-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve] RabbitMq connector options [seatunnel]

Posted by "liunaijie (via GitHub)" <gi...@apache.org>.
liunaijie commented on code in PR #8633:
URL: https://github.com/apache/seatunnel/pull/8633#discussion_r1951829682


##########
seatunnel-connectors-v2/connector-rabbitmq/src/main/java/org/apache/seatunnel/connectors/seatunnel/rabbitmq/config/RabbitmqOptions.java:
##########
@@ -36,7 +36,7 @@
 @Setter
 @Getter
 @AllArgsConstructor
-public class RabbitmqConfig implements Serializable {

Review Comment:
   Let's take a look at this:
   
   [AmazonDynamoDB Connector](https://github.com/apache/seatunnel/tree/dev/seatunnel-connectors-v2/connector-amazondynamodb/src/main/java/org/apache/seatunnel/connectors/seatunnel/amazondynamodb)
   
   
   
   In this connector, we have Options classes (Source, Sink). Each class only contains the variables that the user can configure in the config file (What I call `external`).
   
   ![image](https://github.com/user-attachments/assets/543fc33b-0e0f-45cc-8416-bbf4f979eff3)
   
   Additionally, we have a Config class, which is a utility class that helps pass the user parameters to the DynamoDbSinkClient (What I call `internal`).
   
   
   ![image](https://github.com/user-attachments/assets/1237a34f-41eb-4a55-9fa5-8d7252daaaf5)
   
   
   
   
   



-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve] RabbitMq connector options [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8633:
URL: https://github.com/apache/seatunnel/pull/8633#issuecomment-3092661199

   This pull request has been closed because it has not had recent activity. You could reopen it if you try to continue your work, and anyone who are interested in it are encouraged to continue work on this pull request.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve] RabbitMq connector options [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #8633: [improve] RabbitMq connector options 
URL: https://github.com/apache/seatunnel/pull/8633


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org