-
Notifications
You must be signed in to change notification settings - Fork 289
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
sink(ticdc): support TTL table for cdc sink #7998
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/run-verify |
/run-verify |
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.
could you add more background information about the ttl table feature?
/merge |
@lcwangchao: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/run-all-tests |
/run-all-tests |
1 similar comment
/run-all-tests |
/run-all-tests |
/run-all-tests |
/run-all-tests |
/run-all-tests |
1 similar comment
/run-all-tests |
/run-integration-test |
/test integration-test |
/merge |
@lcwangchao: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: afbcd7c
|
@lcwangchao: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests
If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/test kafka-integration-test |
1 similar comment
/test kafka-integration-test |
/run-all-tests |
/test engine-integration-test |
/retest |
/run-engine-integration-test |
What problem does this PR solve?
Issue Number: close #7997
What is changed and how it works?
The DDL statements with TTL options will be changed when syncing to donwstream
CREATE TABLE ... TTL=t + INTERVAL 1 DAY
=>CREATE TABLE ... TTL=
t+ INTERVAL 1 DAY TTL_ENABLE='OFF'
ALTER TABLE t TTL=t + INTERVAL 1 DAY
=>ALTER TABLE t TTL=t + INTERVAL 1 DAY TTL_ENABLE='OFF'
ALTER TABLE t TTL_ENABLE='ON'
=>ALTER TABLE t
TTL is a new experimental feature since v6.5.0, see: https://docs.pingcap.com/tidb/stable/time-to-live
We can add
TTL
option to a table to identify the rows in the table will be deleted when they are expired.Check List
Tests
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note