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

Document system column _rw_timestamp #155

Merged
merged 1 commit into from
Dec 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions sql/system-catalogs/information-schema.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ It contains the following columns.

| Column | Type | Description |
| :--------------- | :------ | :---------------------------------------- |
| table\_catalog | varchar | Name of the current database. |
| table\_schema | varchar | Name of the schema that contains the view. |
| table\_name | varchar | Name of the view. |
| view\_definition | varchar | SQL statement that defines the view. |
| `table_catalog` | varchar | Name of the current database. |
| `table_schema` | varchar | Name of the schema that contains the view. |
| `table_name` | varchar | Name of the view. |
| `view_definition` | varchar | SQL statement that defines the view. |

<Note>
**TEMPORARY LIMITATION**
Expand All @@ -88,15 +88,16 @@ The `information_schema.columns` view contains information about columns of all

| Column | Type | Description |
| :--------------------- | :------ | :----------------------------------------------------------------------------------------------------------------------------------- |
| table\_catalog | varchar | Name of the current database. |
| table\_schema | varchar | Name of the schema that contains the table, sink, view, or materialized view. The default schema for user-created objects is public. |
| table\_name | varchar | Name of the table, sink, view, or materialized view |
| column\_name | varchar | Name of the column |
| ordinal\_position | int32 | Ordinal position of the column within the table (count starts at 1) |
| is\_nullable | varchar | YES if the column is possibly nullable; NO if it is known not nullable. |
| data\_type | varchar | Data type of the column |
| is\_generated | varchar | ALWAYS if the column has a generated value; NEVER if it doesn't. |
| generation\_expression | varchar | Expression for generating values when is\_generated is ALWAYS. |
| `table_catalog` | varchar | Name of the current database. |
| `table_schema` | varchar | Name of the schema that contains the table, sink, view, or materialized view. The default schema for user-created objects is public. |
| `table_name` | varchar | Name of the table, sink, view, or materialized view. |
| `column_name` | varchar | Name of the column. |
| `ordinal_position` | int32 | Ordinal position of the column within the table (count starts at 1). |
| `is_nullable` | varchar | YES if the column is possibly nullable; NO if it is known not nullable. |
| `data_type` | varchar | Data type of the column. |
| `is_generated` | varchar | ALWAYS if the column has a generated value; NEVER if it doesn't. |
| `generation_expression` | varchar | Expression for generating values when `is_generated` is ALWAYS. |
| `_rw_timestamp` | timestamptz | Internal timestamp indicating when each row was last updated. Only available in the batch query.|

## How to use the information schema views?

Expand Down
Loading