phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juraj Duráni (JIRA) <j...@apache.org>
Subject [jira] [Created] (PHOENIX-2232) PhoenixDatabaseMetaData#getIndexInfo(...) returns the same empty ResultSet if unique parameter is true
Date Fri, 04 Sep 2015 07:04:45 GMT
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)

Mime
View raw message