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
feat: standard stream #14272
feat: standard stream #14272
Conversation
Need wait for the bug #14334 fix |
should we support the |
Not supported in current pr, planned to be supported in a later. |
3d7ecff
to
d596cbc
Compare
I'm not familiar with this pr's logic, can we give a logic picture for all cases if possible? I think that will be more clear. |
024d57c
to
b004cee
Compare
Added a design description in the summary. |
This comment was marked as outdated.
This comment was marked as outdated.
Docker Image for PR
|
This comment was marked as outdated.
This comment was marked as outdated.
Docker Image for PR
|
Docker Image for PR
|
This comment was marked as off-topic.
This comment was marked as off-topic.
👍 LGTM
|
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
_row_version
:_row_version
, has been introduced in the database to record the version information of each row. It starts with an initial value of 0, and increments by 1 with every update to the row. This addition effectively tracks the change history of each row.CREATE STREAM
Syntax withappend_only
Option:append_only=true
, the created stream is defined as anappend_only stream
, meaning it is used solely for appending data and does not track updates or deletions.append_only=false
, the stream created is astandard stream
. This type of stream is capable of capturing all types of data changes, including updates and deletions, offering a comprehensive tracking of data modifications."The
change
field is no longer treated as an internal field; it will be returned in the results when performing aSELECT *
query on a stream."Standard Stream
:The
Standard stream
can capture all types of data changes, including updates and deletions. This makes thestandard stream
a more versatile and suitable option for complex data change scenarios.Design
Design Assumptions:
Definitions:
Capture data changes through the following SQL to obtain standard stream data.
Fixes #14271
Tests
Type of change
This change is