Juraj Duráni created PHOENIX-2232:
-------------------------------------
Summary: PhoenixDatabaseMetaData#getIndexInfo(...) returns the
same empty ResultSet if unique parameter is true
Key: PHOENIX-2232
URL: https://issues.apache.org/jira/browse/PHOENIX-2232
Project: Phoenix
Issue Type: Bug
Reporter: Juraj Duráni
PhoenixDatabaseMetaData#getIndexInfo(...) returns the same empty ResultSet if
unique parameter is true. Consequently, ResultSet#close() method closes the
ResultSet and no further operations are allowed for the ResultSet. It prevents
automatic download of selected metada datas, e.g.:
{code:java}
void getMD(List<Table> tables, boolean unique, boolean approximate){
for(Table t : tables){
ResultSet rs = databaseMetaData.getIndexInfo(t.catalog(), t.schema(),
t.name(), unique, approximate);
// do something with rs
rs.close();
}
}
{code}
Maybe it would be better either to disable close operation or to reopen it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)