Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-4744

Fully Qualified JDBC Plugin Tables return Table not Found via Rest API

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.0
    • 1.7.0
    • Storage - JDBC
    • None

    Description

      When trying to query a JDBC table via authenticated Rest API, using a fully qualified table name returns table not found. This does not occur in sqlline, and a workaround is to "use pluginname.mysqldatabase" prior to the query. (Then the fully qualified table name will work)

      Plugin Name: mysql
      Mysql Database: events
      Mysql Table: curevents

      Via Rest:

      select * from mysql.events.curevents limit 10;

      Fail with "VALIDATION ERROR "Table 'mysql.events.curevents' not found

      Via Rest:

      use mysql.events;
      select * from mysql.events.curevents limit 10;

      • Success.

      Via SQL line, authenticating with the same username, you can connect, and run
      select * from mysql.events.curevents limit 10;

      without issue. (and without the use mysql.events)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rlozovyk Roman Lozovyk
            mandoskippy John Omernik
            Chun Chang Chun Chang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment