hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yui-Wah Lee (JIRA)" <>
Subject [jira] [Created] (HIVE-18082) HiveConnection is throwing an exception upon getHoldability()
Date Thu, 16 Nov 2017 13:01:00 GMT
Yui-Wah Lee created HIVE-18082:

             Summary: HiveConnection is throwing an exception upon getHoldability()
                 Key: HIVE-18082
             Project: Hive
          Issue Type: Bug
          Components: JDBC
    Affects Versions: 1.2.1
            Reporter: Yui-Wah Lee

I was trying to use C3P0 (com.mchange.v2.c3p0.ComboPooledDataSource) with HiveDriver (org.apache.hive.jdbc.HiveDriver).
I got an exception of this:

java.sql.SQLException: Method not supported
at org.apache.hive.jdbc.HiveConnection.getHoldability(
at com.mchange.v2.c3p0.impl.NewPooledConnection.<init>(
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(

I found the source code of HiveConnection ([here|])

 * (non-Javadoc)
 * @see java.sql.Connection#getHoldability()

public int getHoldability() throws SQLException {
    // TODO Auto-generated method stub
    throw new SQLFeatureNotSupportedException("Method not supported");

I think the method should return either one of these instead:


See also this [StackOverfow article|]

This message was sent by Atlassian JIRA

View raw message