Skip to content
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

[Improve][Connector-V2] Redis support custom key and value #7888

Merged
merged 32 commits into from
Oct 29, 2024

Conversation

lm-ylj
Copy link
Contributor

@lm-ylj lm-ylj commented Oct 22, 2024

Purpose of this pull request

close #7884

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

…_column") .stringType() .noDefaultValue() .withDescription("key, list, set, zset use value of a specific column"); public static final Option<String> HASH_KEY_COLUMN = Options.key("hash_key_column") .stringType() .noDefaultValue() .withDescription("The column of hash key you want to write to redis"); public static final Option<String> HASH_VALUE_COLUMN = Options.key("hash_value_column") .stringType() .noDefaultValue() .withDescription("The column of hash value you want to write to redis");
@Hisoka-X
Copy link
Member

cc @FuYouJ

@Hisoka-X Hisoka-X added the First-time contributor First-time contributor label Oct 22, 2024
@FuYouJ
Copy link
Contributor

FuYouJ commented Oct 22, 2024

1: Please write a new e2e test based on your code to test the configuration of customer key, customer value, hashkey, hashvalue
2: Update docs/zh/connection-v2/sink/Redis.md

@github-actions github-actions bot added the e2e label Oct 25, 2024
@github-actions github-actions bot removed the e2e label Oct 25, 2024
@github-actions github-actions bot added the e2e label Oct 25, 2024
@lm-ylj
Copy link
Contributor Author

lm-ylj commented Oct 25, 2024

1: Please write a new e2e test based on your code to test the configuration of customer key, customer value, hashkey, hashvalue 2: Update docs/zh/connection-v2/sink/Redis.md

@FuYouJ done

@Hisoka-X
Copy link
Member

Hi @lm-ylj , please follow the guide to open github action on your fork repository. https://github.com/apache/seatunnel/pull/7888/checks?check_run_id=32048740178

@FuYouJ
Copy link
Contributor

FuYouJ commented Oct 27, 2024

The new features you added are very important. I think you should include more configuration examples in redis.md to help users understand how to use them.

@github-actions github-actions bot removed the Zeta label Oct 28, 2024
Options.key("support_custom_key")
.booleanType()
.defaultValue(false)
.withDescription("if true, enables connection recovery");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.withDescription("if true, enables connection recovery");
.withDescription("if true, the key can be customized by the field value in the upstream data.");

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@lm-ylj
Copy link
Contributor Author

lm-ylj commented Oct 29, 2024

@Hisoka-X @FuYouJ I have modified all the issues you mentioned above. Please review again

Hisoka-X
Hisoka-X previously approved these changes Oct 29, 2024
Copy link
Member

@Hisoka-X Hisoka-X left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if ci passes. Thanks @lm-ylj !

@Hisoka-X Hisoka-X removed the don't merge There needs to be a specific reason in the PR, and it cannot be merged for the time being. label Oct 29, 2024
Copy link
Contributor

@FuYouJ FuYouJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your hard work. I'm okay with that @lm-ylj

@hailin0 hailin0 merged commit ef2c3c7 into apache:dev Oct 29, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature][Connector-Redis]Support redis sink to write custom key and value
4 participants