zhilinli123 commented on code in PR #6842:
URL: https://github.com/apache/seatunnel/pull/6842#discussion_r1623944204
##########
docs/en/connector-v2/sink/Hive.md:
##########
@@ -28,78 +33,175 @@ By default, we use 2PC commit to ensure `exactly-once`
- [x] compress codec
- [x] lzo
-## Options
-
-| name | type | required | default value |
-|-------------------------------|---------|----------|----------------|
-| table_name | string | yes | - |
-| metastore_uri | string | yes | - |
-| compress_codec | string | no | none |
-| hdfs_site_path | string | no | - |
-| hive_site_path | string | no | - |
-| hive.hadoop.conf | Map | no | - |
-| hive.hadoop.conf-path | string | no | - |
-| krb5_path | string | no | /etc/krb5.conf |
-| kerberos_principal | string | no | - |
-| kerberos_keytab_path | string | no | - |
-| abort_drop_partition_metadata | boolean | no | true |
-| common-options | | no | - |
-
-### table_name [string]
-
-Target Hive table name eg: db1.table1, and if the source is multiple mode, you
can use `${database_name}.${table_name}` to generate the table name, it will
replace the `${database_name}` and `${table_name}` with the value of the
CatalogTable generate from the source.
-
-### metastore_uri [string]
-
-Hive metastore uri
-
-### hdfs_site_path [string]
-
-The path of `hdfs-site.xml`, used to load ha configuration of namenodes
-
-### hive_site_path [string]
-
-The path of `hive-site.xml`
-
-### hive.hadoop.conf [map]
-
-Properties in hadoop conf('core-site.xml', 'hdfs-site.xml', 'hive-site.xml')
-
-### hive.hadoop.conf-path [string]
-
-The specified loading path for the 'core-site.xml', 'hdfs-site.xml',
'hive-site.xml' files
-
-### krb5_path [string]
+## Data Type Mapping
+
+| Hive Data Type | SeaTunnel Data Type |
+|----------------|---------------------|
+| tinyint | byte |
+| smallint | short |
+| int | int |
+| bigint | long |
+| float | float |
+| double | double |
+| decimal | decimal |
+| timestamp | local_date_time |
+| date | local_date |
+| interval | not supported |
+| string | string |
+| varchar | string |
+| char | not supported |
+| boolean | boolean |
+| binary | byte array |
+| arrays | array |
+| maps | map |
+| structs | seatunnel row |
+| union | not supported |
+
+## Sink Options
+
+| name | type | required | default value
|
Description
|
+|-------------------------------|---------|----------|------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| table_name | string | yes | -
| Target Hive table name eg: db1.table1, and if the source is multiple
mode, you can use `${database_name}.${table_name}` to generate the table name,
it will replace the `${database_name}` and `${table_name}` with the value of
the CatalogTable generate from the source. |
+| metastore_uri | string | yes | -
| Hive metastore uri
|
+| hive_jdbc_url | string | yes | -
| Hive meta server jdbc url, "jdbc:hive2://127.0.0.1:10000/default" or
`jdbc:hive2://127.0.0.1:10000/default;user=<user>;password=<password>` if you
use LDAP.
|
+| schema_save_mode | Enum | no |
CREATE_SCHEMA_WHEN_NOT_EXIST | the schema save mode, please refer to
`schema_save_mode` below
|
+| data_save_mode | Enum | no | APPEND_DATA
| the data save mode, please refer to `data_save_mode` below
|
+| save_mode_create_template | string | no | see below
| see below
|
+| save_mode_partition_keys | list | no | see below
| see below
|
+| compress_codec | string | no | none
| The compress codec of files
|
+| hdfs_site_path | string | no | -
| The path of `hdfs-site.xml`, used to load ha configuration of namenodes
|
+| hive_site_path | string | no | -
| The path of `hive-site.xml`, used to authentication hive metastore
|
+| hive.hadoop.conf | Map | no | -
| Properties in hadoop conf('core-site.xml', 'hdfs-site.xml',
'hive-site.xml')
|
+| hive.hadoop.conf-path | string | no | -
| The specified loading path for the 'core-site.xml', 'hdfs-site.xml',
'hive-site.xml' files
|
+| krb5_path | string | no | /etc/krb5.conf
| The path of `krb5.conf`, used to authentication kerberos
|
+| kerberos_principal | string | no | -
| The principal of kerberos
|
+| kerberos_keytab_path | string | no | -
| The keytab path of kerberos
|
+| abort_drop_partition_metadata | boolean | no | true
| Flag to decide whether to drop partition metadata from Hive Metastore
during an abort operation. Note: this only affects the metadata in the
metastore, the data in the partition will always be deleted(data generated
during the synchronization process). |
+| common-options | | no | -
| Sink plugin common parameters, please refer to [Sink Common
Options](common-options.md) for details
|
+
+### schema_save_mode[Enum]
Review Comment:
Added to options
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]