flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vinoyang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-11970) TableEnvironment#registerFunction should overwrite if the same name function existed.
Date Tue, 26 Mar 2019 08:07:00 GMT

    [ https://issues.apache.org/jira/browse/FLINK-11970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16801469#comment-16801469
] 

vinoyang commented on FLINK-11970:
----------------------------------

[~zjffdu] The requirement seems valuable. But if we have other choices such as providing an
overridden method {{registerFunction(name, function, overrideIfExisted)}} or a new method
named {{registerOrOverrideFunction(name, function)}}. What do you think?  [~twalthr]

> TableEnvironment#registerFunction should overwrite if the same name function existed.

> --------------------------------------------------------------------------------------
>
>                 Key: FLINK-11970
>                 URL: https://issues.apache.org/jira/browse/FLINK-11970
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Jeff Zhang
>            Assignee: vinoyang
>            Priority: Major
>
> Currently, it would throw exception if I try to register user function multiple times.
Registering udf multiple times is very common usage in notebook scenario. And I don't think
it would cause issues for users.
> e.g. If user happened to register the same udf multiple times (he intend to register
2 different udf actually), then he would get exception at runtime where he use the udf that
is missing registration. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message