zhangshenghang commented on code in PR #10250: URL: https://github.com/apache/seatunnel/pull/10250#discussion_r2650039750
########## docs/zh/connector-v2/source/Hive.md: ########## @@ -66,7 +67,19 @@ import ChangeLog from '../changelog/connector-hive.md'; ### table_name [string] -目标 Hive 表名,例如:`db1.table1` +目标 Hive 表名,例如:`db1.table1`。当 `use_regex = true` 时,该字段支持 `数据库正则.表正则`(Hive 没有 schema)来匹配 Hive 元存储中的多张表。 + +### use_regex [boolean] + +是否将 `table_name` 视为正则表达式进行匹配。开启后,`table_name` 可用于整库/多表同步;同样也支持在 `table_list` / `tables_configs` 的每个表配置里单独开启。 + +语法说明: +- 点号(`.`)被视为数据库与表之间的分隔符(Hive 仅支持 `database.table`)。 +- 只允许出现 1 个未转义的点号(`.`)(作为数据库/表分隔符)。如果需要在正则表达式中使用点号(`.`)(例如 `.*`),必须写成 `\.`(HOCON 字符串里需要写成 `\\.`)。 +- 例如:`db0.\.*`、`db1.user_table_[0-9]+`、`db[1-2].[app|web]order_\.*`。 Review Comment: ```suggestion - 例如:`db0.\.*`、`db1.user_table_[0-9]+`、`db[1-2]\.(app|web)order_.*`。 ``` -- 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]
