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

[jira] [Closed] (FLINK-18419) Can not create a catalog from user jar

     [ https://issues.apache.org/jira/browse/FLINK-18419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dawid Wysakowicz closed FLINK-18419.
------------------------------------
    Resolution: Fixed

Fixed in:
* master
** 8158421c988247220b25af2b06b3488d90d3eb3f..69ef4b7cffb446cca655f7c426a49d9fbb3a8cc3
* 1.11.1
** fba633f2a8c5477c537991c88b412f79e8d54f33..1aa92e897e7d71a1063b87ee08496edac6e4b633

> Can not create a catalog from user jar
> --------------------------------------
>
>                 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
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 1.12.0, 1.11.1
>
>
> 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)