You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/11/01 08:34:15 UTC

[GitHub] [flink] lirui-apache commented on a change in pull request #9988: [FLINK-14418][hive] Create HiveModule to provide Hive built-in functions

lirui-apache commented on a change in pull request #9988: [FLINK-14418][hive] Create HiveModule to provide Hive built-in functions
URL: https://github.com/apache/flink/pull/9988#discussion_r341488312
 
 

 ##########
 File path: flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveShimV110.java
 ##########
 @@ -294,4 +296,19 @@ public boolean isDateStats(ColumnStatisticsData colStatsData) {
 	public CatalogColumnStatisticsDataDate toFlinkDateColStats(ColumnStatisticsData hiveDateColStats) {
 		throw new UnsupportedOperationException("DATE column stats are not supported until Hive 1.2.0");
 	}
+
+	@Override
+	public Set<String> listBuiltInFunctions() {
+		// FunctionInfo doesn't have isBuiltIn() API to tell whether it's a builtin function or not
+		// prior to Hive 1.2.0
+		throw new UnsupportedOperationException("Listing built in functions are not supported until Hive 1.2.0");
 
 Review comment:
   Can we check `FunctionInfo.isNative` to decide whether a function is built-in or not? It seems user defined functions are registered using `FunctionRegistry.registerTemporaryFunction` in [FunctionTask](https://github.com/apache/hive/blob/release-1.1.1/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionTask.java#L72), in which case it's considered non-native.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services