[ https://issues.apache.org/jira/browse/SPARK-5481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14296789#comment-14296789 ]
vijay commented on SPARK-5481: ------------------------------ JDBC 4 is an API. Drivers implement the API, or parts thereof. You can use JDBC 3 compliant drivers in Java 6; calls to the JDBC 4 functions against such drivers cause java.lang.AbstractMethodError exceptions. Spark isn't doing anything fancy that requires any of the JDBC 4 features; the only function AFAICT is isClosed(), which as mentioned above is superfluous. > JdbcRDD requires JDBC 4 APIs, limiting compatible JDBC Drivers > -------------------------------------------------------------- > > Key: SPARK-5481 > URL: https://issues.apache.org/jira/browse/SPARK-5481 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 1.2.0 > Reporter: vijay > > JdbcRDD makes unnecessary use of JDBC 4 APIs. To maintain broad jdbc driver > support, Spark should support JDBC 3. > The issue is calling isClosed() prior to closing JDBC object. isClosed() is > part of JDBC 4. It is perfectly safe to close something that is already > closed - this may throw an exception (which is caught) but has no negative > side affects. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org