You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Dawid Wysakowicz (Jira)" <ji...@apache.org> on 2020/06/23 14:37:00 UTC

[jira] [Created] (FLINK-18419) Can not create a catalog

Dawid Wysakowicz created FLINK-18419:
----------------------------------------

             Summary: Can not create a catalog 
                 Key: FLINK-18419
                 URL: https://issues.apache.org/jira/browse/FLINK-18419
             Project: Flink
          Issue Type: Bug
          Components: Table SQL / Planner
    Affects Versions: 1.11.0
            Reporter: Dawid Wysakowicz
            Assignee: Dawid Wysakowicz


The {{CREATE CATALOG}} statement does not work if the catalog implementation comes from the user classloader. The problem is that {{org.apache.flink.table.planner.operations.SqlToOperationConverter#convertCreateCatalog}} uses the {{SqlToOperationConverter}} classloader.

We should use {{Thread.currentThread().getContextClassloader()}} for now.

One of the ways to reproduce it is try to create e.g. a postgres catalog with the {{flink-connector-jdbc}} passed as an additional jar to {{sql--client}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)