Skip to content

Commit

Permalink
Update information-schema.mdx (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
WanYixian authored Dec 24, 2024
1 parent b692d3f commit 6118d52
Showing 1 changed file with 14 additions and 13 deletions.
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

0 comments on commit 6118d52

Please sign in to comment.