Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
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 (
'
');
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');