Skip to content

Commit

Permalink
Merge pull request #226 from rareddy/TEIID-2910
Browse files Browse the repository at this point in the history
TEIID-2910: fix of the regression for getConnectorMetadata
  • Loading branch information
rareddy committed Apr 11, 2014
2 parents 622b881 + 38d506f commit 8021b07
Showing 1 changed file with 14 additions and 8 deletions.
Expand Up @@ -42,18 +42,24 @@ public class HiveMetadataProcessor extends JDBCMetdataProcessor implements Metad
@Override
public void process(MetadataFactory metadataFactory, Connection conn) throws TranslatorException {
try {
List<String> tables = getTables(conn);
for (String table:tables) {
if (shouldExclude(table)) {
continue;
}
addTable(table, conn, metadataFactory);
}
getConnectorMetadata(conn, metadataFactory);
} catch (SQLException e) {
throw new TranslatorException(e);
}
}


@Override
public void getConnectorMetadata(Connection conn, MetadataFactory metadataFactory)
throws SQLException {
List<String> tables = getTables(conn);
for (String table:tables) {
if (shouldExclude(table)) {
continue;
}
addTable(table, conn, metadataFactory);
}
}

private List<String> getTables(Connection conn) throws SQLException {
ArrayList<String> tables = new ArrayList<String>();
Statement stmt = conn.createStatement();
Expand Down

0 comments on commit 8021b07

Please sign in to comment.