Skip to content

Commit

Permalink
[Fix][Connector] Fix impala connector fetch tables error
Browse files Browse the repository at this point in the history
  • Loading branch information
zixi0825 authored Nov 1, 2024
1 parent 6f89c19 commit e0fb34b
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,19 @@ public ImpalaConnector(DataSourceClient dataSourceClient) {
public BaseJdbcDataSourceInfo getDatasourceInfo(JdbcConnectionInfo jdbcConnectionInfo) {
return new ImpalaDataSourceInfo(jdbcConnectionInfo);
}

@Override
public ResultSet getMetadataColumns(DatabaseMetaData metaData, String catalog, String schema, String tableName, String columnName) throws SQLException {
return metaData.getColumns(null, catalog, tableName, columnName);
}

@Override
protected ResultSet getMetadataTables(DatabaseMetaData metaData, String catalog, String schema) throws SQLException {
return metaData.getTables(null, catalog, null, TABLE_TYPES);
}

@Override
protected ResultSet getPrimaryKeys(DatabaseMetaData metaData, String catalog, String schema, String tableName) throws SQLException {
return null;
}
}

0 comments on commit e0fb34b

Please sign in to comment.