Alexander Smirnov created FLINK-30778:
-----------------------------------------
Summary: Add Configuration into FunctionContext
Key: FLINK-30778
URL: https://issues.apache.org/jira/browse/FLINK-30778
Project: Flink
Issue Type: Improvement
Components: Table SQL / API, Table SQL / Runtime
Affects Versions: 1.16.0
Reporter: Alexander Smirnov
Currently {color:#000000}UserDefinedFunction {color}{color:#000000}is opened
with instance of {color}{color:#000000}FunctionContext to obtain global runtime
information about the context in which the function is executed. It provides
job parameters by key, but doesn't provide Configuration object as a whole.
However, user might want to open another Flink entities in
{color}{color:#000000}UserDefinedFunction{color}{color:#000000}, such as
InputFormats, SourceFunctions, etc., which requires Configuration in their
#open method. {color}
{color:#000000}
Practical example is {color}{color:#000000}CachingLookupFunction with enabled
Full caching, which need to open InputFormat that was passed from
{color}{color:#000000}FullCachingLookupProvider. Currently there is no way to
open InputFormat in FullCachingLookupProvider with Configuration corresponding
to actual job parameters.
{color}
{color:#000000} {color}
{color:#000000} {color}
{color:#000000} {color}
{color:#000000} {color}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)