xuefuz commented on a change in pull request #9445: [FLINK-13706][hive] add documentation of how to use Hive functions in… URL: https://github.com/apache/flink/pull/9445#discussion_r314122500
########## File path: docs/dev/table/hive/hive_functions.md ########## @@ -0,0 +1,150 @@ +--- +title: "Hive Functions" +nav-parent_id: hive_tableapi +nav-pos: 3 +--- +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +## Hive User Defined Functions + +Users can use their existing Hive User Defined Functions in Flink. + +Supported UDF types include: + +- UDF +- GenericUDF +- GenericUDTF +- UDAF +- GenericUDAFResolver2 + +Upon query planning and execution, Hive's UDF and GenericUDF are automatically translated into Flink's ScalarFunction, +Hive's GenericUDTF are automatically translated into Flink's TableFunction, +and Hive's UDAF and GenericUDAFResolver2 are translated into Flink's AggregateFunction. + +To use Hive User Defined Functions, user must set a HiveCatalog backed by Hive Metastore that contains that function as the current catalog, and have to use Blink planner. Review comment: Hive User Defined Functions => a Hive User Defined Function to be consistent with "that function" as => in? ---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
