Java Code Examples for org.apache.flink.table.client.gateway.Executor#listCatalogs()
The following examples show how to use
org.apache.flink.table.client.gateway.Executor#listCatalogs() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LocalExecutorITCase.java From flink with Apache License 2.0 | 6 votes |
@Test public void testListCatalogs() throws Exception { final Executor executor = createDefaultExecutor(clusterClient); final SessionContext session = new SessionContext("test-session", new Environment()); String sessionId = executor.openSession(session); assertEquals("test-session", sessionId); final List<String> actualCatalogs = executor.listCatalogs(sessionId); final List<String> expectedCatalogs = Arrays.asList( "catalog1", "default_catalog", "simple-catalog"); assertEquals(expectedCatalogs, actualCatalogs); executor.closeSession(sessionId); }
Example 2
Source File: LocalExecutorITCase.java From flink with Apache License 2.0 | 5 votes |
@Test public void testListCatalogs() throws Exception { final Executor executor = createDefaultExecutor(clusterClient); final SessionContext session = new SessionContext("test-session", new Environment()); final List<String> actualCatalogs = executor.listCatalogs(session); final List<String> expectedCatalogs = Arrays.asList( "default_catalog", "catalog1", "simple-catalog"); assertEquals(expectedCatalogs, actualCatalogs); }