snuyanzin commented on code in PR #30059:
URL: https://github.com/apache/flink/pull/30059#discussion_r4659105961
##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/runtime/stream/sql/FunctionITCase.java:
##########
@@ -1370,6 +1370,24 @@ static Stream<Arguments>
inputForTestCalcGuardShortCircuit() {
List.of(Row.of(0.0d), Row.of(3.0d))));
}
+ @Test
+ void testCatalogScalarFunctionsWithSameNameInDifferentDatabases() {
+ TestCollectionTableFactory.reset();
+ TestCollectionTableFactory.initData(List.of(Row.of("Bob"),
Row.of("Alice")));
+
+ tEnv().executeSql("CREATE DATABASE db1");
+ tEnv().executeSql("CREATE DATABASE db2");
+ tEnv().createFunction("db1.f", CountingUpperScalarFunction.class);
+ tEnv().createFunction("db2.f", ClassNameScalarFunction.class);
+ tEnv().executeSql("CREATE TABLE SourceTable (s STRING) WITH
('connector' = 'COLLECTION')");
Review Comment:
it looks like we don't have test when one of the functions in default db as
mentioned in PR description
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]