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

RDBMS Plugin Not Returning Results from Presto

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Accepted
    • Blocker
    • Resolution: Unresolved
    • 1.18.0
    • None
    • Storage - JDBC
    • None

    Description

      Using the RDBMS storage plugin, Drill is unable to connect to Presto. More specifically, Drill seems to be connecting and sending queries to Presto, but then nothing happens with the query results.

      I verified the configuration using DBBeaver and was able to successfully query Presto. See screenshot below for config.

      Presto ships with a few sample databases as shown below, and these should be visible in Drill but are not.

      From the logs below, Presto is clearly receiving the queries from Drill, and the queries are returning results, but Drill seems to be dropping the results. While this may seem like a silly exercise, querying Presto from Drill, the fact that it didn't work makes me think we may have a bug in the JDBC Storage Plugin.


      Steps to Reproduce

      1. Download and start Docker container with Presto.
      2. Download Presto JDBC driver (https://prestodb.io/download.html) and copy to Drill classpath.
      3. Create RDBMS storage plugin instance using default config below:

      {
        "type": "jdbc",
        "driver": "io.prestosql.jdbc.PrestoDriver",
        "url": "jdbc:presto://localhost:8080/tpch/sf1",
        "username": "user",
        "password": null,
        "caseInsensitiveTableNames": true,
        "sourceParameters": {},
        "enabled": true
      }
      

      4. Execute a SHOW DATABASES query and you will see that no presto related results are returned. Various queries to the INFORMATION SCHEMA reveal the same thing.

      Attachments

        1. Screen Shot 2020-04-12 at 3.01.37 PM.png
          152 kB
          Charles Givre
        2. Screen Shot 2020-04-12 at 3.00.00 PM.png
          113 kB
          Charles Givre
        3. Screen Shot 2020-04-12 at 2.56.10 PM.png
          70 kB
          Charles Givre
        4. Screen Shot 2020-04-12 at 2.43.33 PM.png
          327 kB
          Charles Givre

        Activity

          People

            Unassigned Unassigned
            cgivre Charles Givre
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: