Skip to content

Commit

Permalink
[Fix-350][Connector] Fix Hive getMetaTables and getMetadataColumns me…
Browse files Browse the repository at this point in the history
…thods. (#351)
  • Loading branch information
xxzuo authored Feb 2, 2024
1 parent 901c0ea commit d73f9c6
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ public BaseJdbcDataSourceInfo getDatasourceInfo(JdbcConnectionInfo jdbcConnectio
return new HiveDataSourceInfo(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;
Expand Down

0 comments on commit d73f9c6

Please sign in to comment.