[
https://issues.apache.org/jira/browse/FLINK-30778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17680265#comment-17680265
]
Timo Walther commented on FLINK-30778:
--------------------------------------
Even though `Configuration` is not deprecated, we should avoid using this class
going forward. `ReadableConfig` is the right abstraction to be passed as it
allows for layered configuration, easy filtering and other transforms. We
should rather try to improve downstream interfaces do not require a full
`Configuration` anymore. This class is potentially mutable which makes not much
sense.
> 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
> Priority: Minor
>
> 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)