The problem right now is that Flink SQL has two stacks for defining
functions. One is the built-in function stack that is based on Calcite
and the other are the registered UDFs.
What you can do is to use
FunctionCatalog.withBuiltIns.getSqlOperatorTable() for listing Calcite
built-in functions and TableEnvironment.listFunctions() for registered UDFs.
I hope this helps.
Regards,
Timo
Am 25.01.19 um 10:17 schrieb Jeff Zhang:
I believe it make sense to list available udf programmatically. e.g.
Users may want to see available udfs in sql-client. It would also
benefit other downstream project that use flink sql. Besides that I
think flink should also provide api for querying the description of
udf about how to use it.
yinhua.dai <yinhua.2...@outlook.com <mailto:yinhua.2...@outlook.com>>
于2019年1月25日周五 下午5:12写道:
Thanks Guys.
I just wondering if there is another way except hard code the list:)
Thanks anyway.
--
Sent from:
http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
--
Best Regards
Jeff Zhang