[
https://issues.apache.org/jira/browse/DRILL-1640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14200277#comment-14200277
]
Matt Burgess commented on DRILL-1640:
-------------------------------------
I tried to update the review request but I don't think I did it correctly. When
I updated the diff it said it couldn't match the commit SHA. Do I need to
squash my commits and/or open a new review request? Thanks in advance!
> DrillColumnMetaDataList does not implement List methods
> -------------------------------------------------------
>
> Key: DRILL-1640
> URL: https://issues.apache.org/jira/browse/DRILL-1640
> Project: Apache Drill
> Issue Type: Bug
> Components: Client - JDBC
> Reporter: Matt Burgess
> Attachments: DRILL-1640.patch.1, DRILL-1640.patch.2
>
>
> DrillColumnMetaDataList extends from org.apache.drill.jdbc.BasicList, which
> does not implement much of the List interface (it usually throws
> UnsupportedOperationExceptions).
> One of these methods, iterator(), is called when searching for columns by
> name in the result set. Using the JDBC API, if you call
> DrillResultSet.getString("myColumnName"), you get something like the
> following stack trace:
> Caused by: java.lang.UnsupportedOperationException
> at org.apache.drill.jdbc.BasicList.iterator(BasicList.java:44)
> at
> org.apache.drill.jdbc.DrillColumnMetaDataList.iterator(DrillColumnMetaDataList.java:34)
> at
> net.hydromatic.avatica.AvaticaResultSet.findColumn0(AvaticaResultSet.java:69)
> at
> net.hydromatic.avatica.AvaticaResultSet.getAccessor(AvaticaResultSet.java:102)
> at
> net.hydromatic.avatica.AvaticaResultSet.getString(AvaticaResultSet.java:270)
> DrillColumnMetaDataList should behave as a proper list.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)