Dawid Wysakowicz created FLINK-33093:
----------------------------------------
Summary: SHOW FUNCTIONS throw exception with unset catalog
Key: FLINK-33093
URL: https://issues.apache.org/jira/browse/FLINK-33093
Project: Flink
Issue Type: Bug
Components: Table SQL / API
Affects Versions: 1.18.0
Reporter: Dawid Wysakowicz
Assignee: Dawid Wysakowicz
Fix For: 1.18.0
A test like this throw an exception. It should instead return only built-in
functions
{code}
@Test
public void testUnsetCatalogWithShowFunctions() throws Exception {
TableEnvironment tEnv = TableEnvironment.create(ENVIRONMENT_SETTINGS);
tEnv.useCatalog(null);
TableResult table = tEnv.executeSql("SHOW FUNCTIONS");
final List<Row> functions =
CollectionUtil.iteratorToList(table.collect());
// check it has some built-in functions
assertThat(functions).hasSizeGreaterThan(0);
}
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)