Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-5741 External JDBC Read Support
  3. IMPALA-12381

Add jdbc related properties to JDBC data source object

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • Impala 4.4.0
    • Backend, Frontend
    • None
    • ghx-label-9

    Description

      Currently jdbc related properties are specified as initString when creating table as below:

      CREATE TABLE alltypes_jdbc_datasource (
      id INT, name STRING)
      PRODUCED BY DATA SOURCE JdbcDataSource (
      '

      {"database.type":"POSTGRES", "jdbc.url":"jdbc:postgresql://localhost:5432/functional", "jdbc.driver":"org.postgresql.Driver", "dbcp.username":"hiveuser", "dbcp.password":"password", "table":"alltypes"}

      ');

      It's more convenient to move jdbc related properties to data source object as data-source properties as following sample so that user don't need to specify those properties for each table.

      CREATE DATA SOURCE JdbcDataSource
      LOCATION '/test-warehouse/data-sources/jdbc-data-source.jar'
      CLASS 'org.apache.impala.extdatasource.jdbc.JdbcDataSource'
      API_VERSION 'V1'
      DSPROPERTIES (
      'DATABSE.TYPE'='POSTGRES',
      'JDBC.URL'='jdbc:postgresql://localhost:5432/functional',
      'JDBC.DRIVER'='org.postgresql.Driver',
      'DBCP.USERNAME'='hiveuser',
      'DBCP.PASSWORD'='password');

      Attachments

        Activity

          People

            wzhou Wenzhe Zhou
            wzhou Wenzhe Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: