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

[#5150] fix (doc): Align the gravitino type in trino-connector doc #5313

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
42 changes: 22 additions & 20 deletions docs/trino-connector/supported-catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ call gravitino.system.create_catalog(
'hive',
map(
array['metastore.uris', 'trino.bypass.hive.config.resources'],
array['thrift://trino-ci-hive:9083', "/tmp/hive-site.xml,/tmp/core-site.xml"]
array['thrift://trino-ci-hive:9083', '/tmp/hive-site.xml,/tmp/core-site.xml']
)
);
```
Expand All @@ -149,24 +149,26 @@ More Trino connector configurations can refer to:
Gravitino Trino connector supports the following data type conversions between Trino and Gravitino currently. Depending on the detailed catalog, Gravitino may not support some data types conversion for this specific catalog, for example,
Hive does not support `TIME` data type.

| Gravitino Type | Trino Type |
|----------------|------------|
| BooleanType | BOOLEAN |
| ByteType | TINYINT |
| ShortType | SMALLINT |
| IntegerType | INTEGER |
| LongType | BIGINT |
| FloatType | REAL |
| DoubleType | DOUBLE |
| DecimalType | DECIMAL |
| StringType | VARCHAR |
| VarcharType | VARCHAR |
| BinaryType | VARBINARY |
| DateType | DATE |
| TimeType | TIME |
| TimestampType | TIMESTAMP |
| ArrayType | ARRAY |
| MapType | MAP |
| StructType | ROW |
| Gravitino Type | Trino Type |
|-----------------------|--------------------------|
| Boolean | BOOLEAN |
| Byte | TINYINT |
| Short | SMALLINT |
| Integer | INTEGER |
| Long | BIGINT |
| Float | REAL |
| Double | DOUBLE |
| Decimal | DECIMAL |
| String | VARCHAR |
| Varchar | VARCHAR |
| FixedChar | CHAR |
| Binary | VARBINARY |
| Date | DATE |
| Time | TIME |
| Timestamp | TIMESTAMP |
| TimestampWithTimezone | TIMESTAMP WITH TIME ZONE |
| List | ARRAY |
| Map | MAP |
| Struct | ROW |

For more about Trino data types, please refer to [Trino data types](https://trino.io/docs/current/language/types.html) and Gravitino data types, please refer to [Gravitino data types](../manage-relational-metadata-using-gravitino.md#gravitino-table-column-type).
Loading