Details
Description
DatabaseMetaData.getSchemas returns incorrect column order. According to java 6 api doc, getSchemas should return answer set columns in the following order:
1.TABLE_SCHEM String => schema name
2.TABLE_CATALOG String => catalog name
The Phoenix JDBC driver returns these in reverse column order, i.e.
1. TABLE_CATALOG
2. TABLE_SCHEM
Our experience with other JDBC drivers is that they return the data w/ TABLE_SCHEM being the first column.