[
https://issues.apache.org/jira/browse/FLINK-33093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chesnay Schepler updated FLINK-33093:
-------------------------------------
Fix Version/s: 1.19.0
(was: 1.18.0)
> 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
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.19.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)