[
https://issues.apache.org/jira/browse/IGNITE-24350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17927167#comment-17927167
]
Ignite TC Bot commented on IGNITE-24350:
----------------------------------------
{panel:title=Branch: [pull/11837/head] Base: [master] : No blockers
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/11837/head] Base: [master] : New Tests
(1)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Calcite SQL{color} [[tests
1|https://ci2.ignite.apache.org/viewLog.html?buildId=8309684]]
* {color:#013220}IgniteCalciteTestSuite:
UserDefinedFunctionsIntegrationTest.testSameSignatureNotRegistered -
PASSED{color}
{panel}
[TeamCity *--> Run :: All*
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=8286721&buildTypeId=IgniteTests24Java8_RunAll]
> Calcite. Absense of error on same-signature UDF registration.
> -------------------------------------------------------------
>
> Key: IGNITE-24350
> URL: https://issues.apache.org/jira/browse/IGNITE-24350
> Project: Ignite
> Issue Type: Bug
> Affects Versions: 2.17
> Reporter: Vladimir Steshin
> Assignee: Vladimir Steshin
> Priority: Minor
> Labels: calcite, ignite-2, ise
> Fix For: 2.18
>
>
> We should produce an error if user registers an user-defined SQL function
> with duplicated signature. Currently, it is possible to add several functions
> with the same name and parameters via
> _CacheConfiguration#setSqlFunctionClasses()_
> Example:
> {code:java}
> public static class UDF {
> @QuerySqlFunction
> public static String fun(int v) {
> return "echo_" + v;
> }
> @QuerySqlFunction(alias = "fun")
> public static int fun2(int v) {
> return v;
> }
>
> // No error or log message here.
> ignite.getOrCreateCache(new CacheConfiguration<Integer,
> Integer>("testCache")
> .setSqlFunctionClasses(UDF.class));
> // Fails. A string is returned.
> assertQuery("SELECT \"testCache\".fun(1)").returns(1).check();
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)