libenchao commented on a change in pull request #11461: [FLINK-16092][docs-zh] Translate dev/table/functions/index.zh.md into Chinese URL: https://github.com/apache/flink/pull/11461#discussion_r396051330
########## File path: docs/dev/table/functions/index.zh.md ########## @@ -24,74 +24,74 @@ specific language governing permissions and limitations under the License. --> -Flink Table API & SQL empowers users to do data transformations with functions. +Flink 允许用户在 Table API 和 SQL 中使用函数进行数据的转换。 * This will be replaced by the TOC {:toc} -Types of Functions +函数类型 ------------------ -There are two dimensions to classify functions in Flink. +Flink 中的函数有两个划分标准。 -One dimension is system (or built-in) functions v.s. catalog functions. System functions have no namespace and can be -referenced with just their names. Catalog functions belong to a catalog and database therefore they have catalog and database -namespaces, they can be referenced by either fully/partially qualified name (`catalog.db.func` or `db.func`) or just the -function name. +一个划分标准是:系统(内置)函数和 Catalog 函数。系统函数没有名称空间,只能通过其名称来进行引用。 +Catalog 函数属于 Catalog 和数据库,因此它们拥有 Catalog 和数据库命名空间。 +用户可以通过全/部分限定名(`catalog.db.func` 或 `db.func`)或者函数名 +来对 Catalog 函数进行引用。 -The other dimension is temporary functions v.s. persistent functions. Temporary functions are volatile and only live up to - lifespan of a session, they are always created by users. Persistent functions live across lifespan of sessions, they are either - provided by the system or persisted in catalogs. - -The two dimensions give Flink users 4 categories of functions: +另一个划分标准是:临时函数和持久化函数。 +临时函数始终由用户创建,它容易改变并且仅在会话的生命周期内有效。 +持久化函数不是由系统提供,就是存储在 Catalog 中,它在会话的整个生命周期内都有效。 -1. Temporary system functions -2. System functions -3. Temporary catalog functions -4. Catalog functions +这两个划分标准给 Flink 用户提供了 4 种函数: -Note that system functions always precede catalog's, and temporary functions always precede persistent on their own dimension -in function resolution order explained below. +1. 临时性系统函数 +2. 系统函数 +3. 临时性 Catalog 函数 +4. Catalog 函数 -Referencing Functions +请注意,系统函数始终优先于目录函数解析,临时函数始终优先于持久化函数解析, Review comment: `目录函数`这里应该是手误吧,我看其他地方都没有翻译`Catalog` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services