Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-18419

Can not create a catalog from user jar

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              dwysakowicz Dawid Wysakowicz
              dwysakowicz Dawid Wysakowicz
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: