-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add doc for table_changes function #17252
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
Conversation
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.
| Functions | |
| Table functions |
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.
| The connector exposes the following table functions: | |
| The connector provides the following table functions: |
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.
| system.table_changes | |
| table_changes |
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.
Wrapping is still weird for this paragraph .. 80 char would be ideal
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.
| In addition to columns present in the table this function | |
| In addition to columns present in the table |
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.
| Type ``VARCHAR``, gives the type of change that occurred, | |
| Gives the type of change that occurred as represented as ``VARCHAR`` value. |
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.
add schema_name and table_name as required parameters
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.
I think we should at least move values down into a separate line
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.
three lines
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.
sorry i don't get this comment :|
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.
UPDATE pages
SET domain = 'domain4'
WHERE views = 2;
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.
| In the output it can be easily seen what changes happen in which version. | |
| The output shows what changes happen in which version. |
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.
From 833 to 861 .. this is all the same as above right. .. if so .. just omit it all
3f6001f to
0ca3e00
Compare
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.
Wrap up
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.
| Gives the type of change that occurred as represented as ``VARCHAR`` value. | |
| Gives the type of change that occurred. |
and wrap
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.
| Shows the table version for which the change occurred as ``BIGINT`` value. | |
| Shows the table version for which the change occurred. |
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.
| ``TIMESTAMP(3) WITH TIME ZONE`` data type value. | |
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.
| Represents the timestamp for the commit in which the specified change happened as | |
| Represents the timestamp for the commit in which the specified change happened. |
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.
I think we need to add the schema to the queries above to be clear
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.
Or add a "use" command first
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.
We can omit that .. its implied since we are still talking about the same example
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.
| The preceding sequence of SQL statements returns the following result: | |
| The preceding SQL statement returns the following result: |
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.
| Here we can see changes that occurred at version 1 - three inserts - they were | |
| You can see changes that occurred at version 1 as- three inserts. They are |
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.
| not visible in the previous code snippet when since_version value was set to 1. | |
| not visible in the previous statement when since_version value was set to 1. |
|
I simplified a bit.. |
|
Let me know when you have the code PR ready and this updates so I can review for latest status. Also currently this PR conflicts.. |
0ca3e00 to
32c4b40
Compare
Yeah sorry, I was in warsaw office for 2 days and I didn't have time to update this one. I have updated it only now |
colebow
left a comment
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.
One nit, but LGTM.
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.
| In addition to columns present in the table the function returns the following | |
| In addition to returning the columns present in the table, the function | |
| returns the following |
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.
Please apply this suggestion @homar
mosabua
left a comment
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.
Needs some reordering
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.
Expand this to a sentence.
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.
as- ??
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.
| not visible in the previous statement when since_version value was set to 1. | |
| not visible in the previous statement when ``since_version`` value was set to 1. |
|
@homar .. are you updating this PR so we can review again and maybe merge soon? |
32c4b40 to
f949996
Compare
mosabua
left a comment
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.
Looks good now. Let's ship it.
mosabua
left a comment
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.
Looks good now. Let's ship it.
Description
Docs changes for #16205
Additional context and related issues
Release notes
(x) This is not user-visible or docs only and no release notes are required.