Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
getTables on the metadata of a connection does not work (returns empty ResultSet) with avatica remoting using a JdbcMeta.
connection.getMetaData().getTables(null, null, null, null);
The problem seems to be related to the String[] types argument of the getTables method, this works as expected:
connection.getMetaData().getTables(null, null, null, new String[]{"TABLE"});
I think it boils down to the JdbcMeta#toArray(List<String> typeList) method which returns an empty array in stead of null, resulting in the creation of an incorrect typeFilter in CalciteMetaImpl#getTables (line 254).