This is an automated email from the ASF dual-hosted git repository.

jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new eac6fefcb [#5150] fix (doc): Align the gravitino type in 
trino-connector doc  (#5295)
eac6fefcb is described below

commit eac6fefcb8bd86cf10f6289cb82c148a04b23d8f
Author: Yuhui <[email protected]>
AuthorDate: Mon Oct 28 18:29:12 2024 +0800

    [#5150] fix (doc): Align the gravitino type in trino-connector doc  (#5295)
    
    ### What changes were proposed in this pull request?
    
    Align the gravitino type in trino-connector doc with programming guides
    doc
    
    ### Why are the changes needed?
    
    Fix:#5150
    
    ### Does this PR introduce _any_ user-facing change?
    
    Update docs
    
    ### How was this patch tested?
    
    No
---
 docs/trino-connector/supported-catalog.md | 42 ++++++++++++++++---------------
 1 file changed, 22 insertions(+), 20 deletions(-)

diff --git a/docs/trino-connector/supported-catalog.md 
b/docs/trino-connector/supported-catalog.md
index 296514b58..6f3696d98 100644
--- a/docs/trino-connector/supported-catalog.md
+++ b/docs/trino-connector/supported-catalog.md
@@ -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']
     )
 );
 ```
@@ -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).

Reply via email to