You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by vg...@apache.org on 2017/02/09 22:49:21 UTC

[1/3] hive git commit: HIVE-15730: JDBC should use SQLFeatureNotSupportedException where appropriate instead of SQLException (Sankar Hariappan reviewed by Vaibhav Gumashta)

Repository: hive
Updated Branches:
  refs/heads/master fc08e3be5 -> 2429bb28a


http://git-wip-us.apache.org/repos/asf/hive/blob/2429bb28/jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java
----------------------------------------------------------------------
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java b/jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java
index fa984f4..e3bdb68 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java
@@ -23,6 +23,7 @@ import java.sql.DatabaseMetaData;
 import java.sql.ResultSet;
 import java.sql.RowIdLifetime;
 import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
 import java.util.Arrays;
 import java.util.Comparator;
 import java.util.jar.Attributes;
@@ -85,7 +86,7 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public boolean allProceduresAreCallable() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean allTablesAreSelectable() throws SQLException {
@@ -93,33 +94,33 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public boolean autoCommitFailureClosesAllResultSets() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean dataDefinitionCausesTransactionCommit() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean dataDefinitionIgnoredInTransactions() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean deletesAreDetected(int type) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean doesMaxRowSizeIncludeBlobs() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public ResultSet getAttributes(String catalog, String schemaPattern,
       String typeNamePattern, String attributeNamePattern) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public ResultSet getBestRowIdentifier(String catalog, String schema,
       String table, int scope, boolean nullable) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public String getCatalogSeparator() throws SQLException {
@@ -148,23 +149,23 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public ResultSet getClientInfoProperties() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public ResultSet getColumnPrivileges(String catalog, String schema,
       String table, String columnNamePattern) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public ResultSet getPseudoColumns(String catalog, String schemaPattern,
       String tableNamePattern, String columnNamePattern) throws SQLException {
     // JDK 1.7
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean generatedKeyAlwaysReturned() throws SQLException {
     // JDK 1.7
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /**
@@ -327,7 +328,7 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
 
   public ResultSet getExportedKeys(String catalog, String schema, String table)
       throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public String getExtraNameCharacters() throws SQLException {
@@ -337,7 +338,7 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
 
   public ResultSet getFunctionColumns(String arg0, String arg1, String arg2,
       String arg3) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public ResultSet getFunctions(String catalogName, String schemaPattern, String functionNamePattern)
@@ -428,15 +429,15 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public int getMaxBinaryLiteralLength() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxCatalogNameLength() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxCharLiteralLength() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /**
@@ -448,67 +449,67 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public int getMaxColumnsInGroupBy() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxColumnsInIndex() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxColumnsInOrderBy() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxColumnsInSelect() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxColumnsInTable() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxConnections() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxCursorNameLength() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxIndexLength() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxProcedureNameLength() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxRowSize() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxSchemaNameLength() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxStatementLength() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxStatements() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxTableNameLength() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxTablesInSelect() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getMaxUserNameLength() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public String getNumericFunctions() throws SQLException {
@@ -572,15 +573,15 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public int getResultSetHoldability() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public RowIdLifetime getRowIdLifetime() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public String getSQLKeywords() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getSQLStateType() throws SQLException {
@@ -633,12 +634,12 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
 
   public ResultSet getSuperTables(String catalog, String schemaPattern,
       String tableNamePattern) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public ResultSet getSuperTypes(String catalog, String schemaPattern,
       String typeNamePattern) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public String getSystemFunctions() throws SQLException {
@@ -647,7 +648,7 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
 
   public ResultSet getTablePrivileges(String catalog, String schemaPattern,
       String tableNamePattern) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public ResultSet getTableTypes() throws SQLException {
@@ -771,123 +772,123 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
 
       public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
         // JDK 1.7
-        throw new SQLException("Method not supported");
+        throw new SQLFeatureNotSupportedException("Method not supported");
       }
 
       public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
         // JDK 1.7
-        throw new SQLException("Method not supported");
+        throw new SQLFeatureNotSupportedException("Method not supported");
         }
     };
   }
 
   public String getURL() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public String getUserName() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public ResultSet getVersionColumns(String catalog, String schema, String table)
       throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean insertsAreDetected(int type) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean isCatalogAtStart() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean isReadOnly() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean locatorsUpdateCopy() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean nullPlusNonNullIsNull() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean nullsAreSortedAtEnd() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean nullsAreSortedAtStart() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean nullsAreSortedHigh() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean nullsAreSortedLow() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean othersDeletesAreVisible(int type) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean othersInsertsAreVisible(int type) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean othersUpdatesAreVisible(int type) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean ownDeletesAreVisible(int type) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean ownInsertsAreVisible(int type) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean ownUpdatesAreVisible(int type) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean storesLowerCaseIdentifiers() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean storesLowerCaseQuotedIdentifiers() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean storesMixedCaseIdentifiers() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean storesMixedCaseQuotedIdentifiers() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean storesUpperCaseIdentifiers() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean storesUpperCaseQuotedIdentifiers() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsANSI92EntryLevelSQL() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsANSI92FullSQL() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsANSI92IntermediateSQL() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsAlterTableWithAddColumn() throws SQLException {
@@ -927,40 +928,40 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public boolean supportsConvert() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsConvert(int fromType, int toType) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsCoreSQLGrammar() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsCorrelatedSubqueries() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsDataDefinitionAndDataManipulationTransactions()
       throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsDataManipulationTransactionsOnly() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsDifferentTableCorrelationNames() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsExpressionsInOrderBy() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsExtendedSQLGrammar() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsFullOuterJoins() throws SQLException {
@@ -968,7 +969,7 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public boolean supportsGetGeneratedKeys() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsGroupBy() throws SQLException {
@@ -976,19 +977,19 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public boolean supportsGroupByBeyondSelect() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsGroupByUnrelated() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsIntegrityEnhancementFacility() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsLikeEscapeClause() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsLimitedOuterJoins() throws SQLException {
@@ -996,19 +997,19 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public boolean supportsMinimumSQLGrammar() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsMixedCaseIdentifiers() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsMixedCaseQuotedIdentifiers() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsMultipleOpenResults() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsMultipleResultSets() throws SQLException {
@@ -1016,11 +1017,11 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public boolean supportsMultipleTransactions() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsNamedParameters() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsNonNullableColumns() throws SQLException {
@@ -1028,23 +1029,23 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public boolean supportsOpenCursorsAcrossCommit() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsOpenCursorsAcrossRollback() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsOpenStatementsAcrossCommit() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsOpenStatementsAcrossRollback() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsOrderByUnrelated() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsOuterJoins() throws SQLException {
@@ -1061,7 +1062,7 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
 
   public boolean supportsResultSetConcurrency(int type, int concurrency)
       throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsResultSetHoldability(int holdability)
@@ -1102,11 +1103,11 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public boolean supportsStatementPooling() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsStoredFunctionsUsingCallSyntax() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsStoredProcedures() throws SQLException {
@@ -1114,28 +1115,28 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public boolean supportsSubqueriesInComparisons() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsSubqueriesInExists() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsSubqueriesInIns() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsSubqueriesInQuantifieds() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsTableCorrelationNames() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsTransactionIsolationLevel(int level)
       throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean supportsTransactions() throws SQLException {
@@ -1151,23 +1152,23 @@ public class HiveDatabaseMetaData implements DatabaseMetaData {
   }
 
   public boolean updatesAreDetected(int type) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean usesLocalFilePerTable() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean usesLocalFiles() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean isWrapperFor(Class<?> iface) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public <T> T unwrap(Class<T> iface) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public static void main(String[] args) throws SQLException {

http://git-wip-us.apache.org/repos/asf/hive/blob/2429bb28/jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java
----------------------------------------------------------------------
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java b/jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java
index 590a2ed..b842634 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java
@@ -34,6 +34,7 @@ import java.sql.ResultSet;
 import java.sql.ResultSetMetaData;
 import java.sql.RowId;
 import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
 import java.sql.SQLXML;
 import java.sql.Time;
 import java.sql.Timestamp;
@@ -74,7 +75,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void addBatch() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -197,7 +198,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public ResultSetMetaData getMetaData() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -208,7 +209,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public ParameterMetaData getParameterMetaData() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -219,7 +220,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setArray(int i, Array x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -230,7 +231,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -242,7 +243,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -254,7 +255,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -287,7 +288,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -299,7 +300,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -310,7 +311,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setBlob(int i, Blob x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -321,7 +322,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -333,7 +334,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
   public void setBlob(int parameterIndex, InputStream inputStream, long length)
           throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -364,7 +365,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setBytes(int parameterIndex, byte[] x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -375,7 +376,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -388,7 +389,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
   public void setCharacterStream(int parameterIndex, Reader reader, int length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -401,7 +402,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
   public void setCharacterStream(int parameterIndex, Reader reader, long length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -412,7 +413,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setClob(int i, Clob x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -423,7 +424,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setClob(int parameterIndex, Reader reader) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -434,7 +435,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -456,7 +457,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -507,7 +508,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -520,7 +521,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
   public void setNCharacterStream(int parameterIndex, Reader value, long length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -531,7 +532,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setNClob(int parameterIndex, NClob value) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -542,7 +543,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setNClob(int parameterIndex, Reader reader) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -553,7 +554,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -564,7 +565,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setNString(int parameterIndex, String value) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -637,7 +638,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
   public void setObject(int parameterIndex, Object x, int targetSqlType)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -649,7 +650,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
   public void setObject(int parameterIndex, Object x, int targetSqlType, int scale)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -660,7 +661,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setRef(int i, Ref x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -671,7 +672,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setRowId(int parameterIndex, RowId x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -682,7 +683,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -714,7 +715,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setTime(int parameterIndex, Time x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -726,7 +727,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -749,7 +750,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
   public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -760,7 +761,7 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
 
   public void setURL(int parameterIndex, URL x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -773,6 +774,6 @@ public class HivePreparedStatement extends HiveStatement implements PreparedStat
   public void setUnicodeStream(int parameterIndex, InputStream x, int length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 }

http://git-wip-us.apache.org/repos/asf/hive/blob/2429bb28/jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java
----------------------------------------------------------------------
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java b/jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java
index 6a91381..33b9b84 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java
@@ -24,6 +24,7 @@ import java.sql.Connection;
 import java.sql.ResultSet;
 import java.sql.ResultSetMetaData;
 import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
 import java.sql.Statement;
 import java.util.ArrayList;
 import java.util.Iterator;
@@ -390,7 +391,7 @@ public class HiveQueryResultSet extends HiveBaseResultSet {
       ex.printStackTrace();
       throw new SQLException("Error retrieving next row", ex);
     }
-    // NOTE: fetchOne dosn't throw new SQLException("Method not supported").
+    // NOTE: fetchOne doesn't throw new SQLFeatureNotSupportedException("Method not supported").
     return true;
   }
 
@@ -432,12 +433,12 @@ public class HiveQueryResultSet extends HiveBaseResultSet {
 
   public <T> T getObject(String columnLabel, Class<T> type)  throws SQLException {
     //JDK 1.7
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public <T> T getObject(int columnIndex, Class<T> type)  throws SQLException {
     //JDK 1.7
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /**

http://git-wip-us.apache.org/repos/asf/hive/blob/2429bb28/jdbc/src/java/org/apache/hive/jdbc/HiveResultSetMetaData.java
----------------------------------------------------------------------
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HiveResultSetMetaData.java b/jdbc/src/java/org/apache/hive/jdbc/HiveResultSetMetaData.java
index f6c38d8..942f38d 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HiveResultSetMetaData.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HiveResultSetMetaData.java
@@ -20,6 +20,7 @@ package org.apache.hive.jdbc;
 
 import java.sql.ResultSetMetaData;
 import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
 import java.util.List;
 
 import org.apache.hadoop.hive.serde2.thrift.Type;
@@ -42,7 +43,7 @@ public class HiveResultSetMetaData implements java.sql.ResultSetMetaData {
   }
 
   public String getCatalogName(int column) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   private Type getHiveType(int column) throws SQLException {
@@ -94,11 +95,11 @@ public class HiveResultSetMetaData implements java.sql.ResultSetMetaData {
   }
 
   public String getSchemaName(int column) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public String getTableName(int column) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean isAutoIncrement(int column) throws SQLException {
@@ -124,7 +125,7 @@ public class HiveResultSetMetaData implements java.sql.ResultSetMetaData {
   }
 
   public boolean isDefinitelyWritable(int column) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int isNullable(int column) throws SQLException {
@@ -137,23 +138,23 @@ public class HiveResultSetMetaData implements java.sql.ResultSetMetaData {
   }
 
   public boolean isSearchable(int column) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean isSigned(int column) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean isWritable(int column) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean isWrapperFor(Class<?> iface) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public <T> T unwrap(Class<T> iface) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   protected int toZeroIndex(int column) throws SQLException {

http://git-wip-us.apache.org/repos/asf/hive/blob/2429bb28/jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java
----------------------------------------------------------------------
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java b/jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java
index 56860c4..c846a76 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java
@@ -149,7 +149,7 @@ public class HiveStatement implements java.sql.Statement {
 
   @Override
   public void addBatch(String sql) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -187,7 +187,7 @@ public class HiveStatement implements java.sql.Statement {
 
   @Override
   public void clearBatch() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -239,7 +239,7 @@ public class HiveStatement implements java.sql.Statement {
 
   // JDK 1.7
   public void closeOnCompletion() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -416,7 +416,7 @@ public class HiveStatement implements java.sql.Statement {
 
   @Override
   public boolean execute(String sql, int autoGeneratedKeys) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -427,7 +427,7 @@ public class HiveStatement implements java.sql.Statement {
 
   @Override
   public boolean execute(String sql, int[] columnIndexes) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -438,7 +438,7 @@ public class HiveStatement implements java.sql.Statement {
 
   @Override
   public boolean execute(String sql, String[] columnNames) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -449,7 +449,7 @@ public class HiveStatement implements java.sql.Statement {
 
   @Override
   public int[] executeBatch() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -486,7 +486,7 @@ public class HiveStatement implements java.sql.Statement {
 
   @Override
   public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -497,7 +497,7 @@ public class HiveStatement implements java.sql.Statement {
 
   @Override
   public int executeUpdate(String sql, int[] columnIndexes) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -508,7 +508,7 @@ public class HiveStatement implements java.sql.Statement {
 
   @Override
   public int executeUpdate(String sql, String[] columnNames) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -566,7 +566,7 @@ public class HiveStatement implements java.sql.Statement {
 
   @Override
   public int getMaxFieldSize() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -635,7 +635,7 @@ public class HiveStatement implements java.sql.Statement {
 
   @Override
   public int getResultSetConcurrency() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -646,7 +646,7 @@ public class HiveStatement implements java.sql.Statement {
 
   @Override
   public int getResultSetHoldability() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -737,7 +737,7 @@ public class HiveStatement implements java.sql.Statement {
   @Override
   public void setEscapeProcessing(boolean enable) throws SQLException {
     if (enable) {
-      throw new SQLException("Method not supported");
+      throw new SQLFeatureNotSupportedException("Method not supported");
     }
   }
 
@@ -784,7 +784,7 @@ public class HiveStatement implements java.sql.Statement {
 
   @Override
   public void setMaxFieldSize(int max) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -810,7 +810,7 @@ public class HiveStatement implements java.sql.Statement {
 
   @Override
   public void setPoolable(boolean poolable) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*

http://git-wip-us.apache.org/repos/asf/hive/blob/2429bb28/jdbc/src/test/org/apache/hive/jdbc/HiveStatementTest.java
----------------------------------------------------------------------
diff --git a/jdbc/src/test/org/apache/hive/jdbc/HiveStatementTest.java b/jdbc/src/test/org/apache/hive/jdbc/HiveStatementTest.java
index 3ccd5df..b06703d 100644
--- a/jdbc/src/test/org/apache/hive/jdbc/HiveStatementTest.java
+++ b/jdbc/src/test/org/apache/hive/jdbc/HiveStatementTest.java
@@ -17,11 +17,11 @@
  */
 package org.apache.hive.jdbc;
 
-import static org.junit.Assert.assertEquals;
+import org.junit.Test;
 
 import java.sql.SQLException;
 
-import org.junit.Test;
+import static org.junit.Assert.assertEquals;
 
 public class HiveStatementTest {
 
@@ -45,4 +45,14 @@ public class HiveStatementTest {
     HiveStatement stmt = new HiveStatement(null, null, null);
     stmt.setFetchSize(-1);
   }
+
+  @Test
+  public void testaddBatch() throws SQLException {
+    HiveStatement stmt = new HiveStatement(null, null, null);
+    try {
+      stmt.addBatch(null);
+    } catch (SQLException e) {
+      assertEquals("java.sql.SQLFeatureNotSupportedException: Method not supported", e.toString());
+    }
+  }
 }


[3/3] hive git commit: HIVE-15730: JDBC should use SQLFeatureNotSupportedException where appropriate instead of SQLException (Sankar Hariappan reviewed by Vaibhav Gumashta)

Posted by vg...@apache.org.
HIVE-15730: JDBC should use SQLFeatureNotSupportedException where appropriate instead of SQLException (Sankar Hariappan reviewed by Vaibhav Gumashta)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/2429bb28
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/2429bb28
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/2429bb28

Branch: refs/heads/master
Commit: 2429bb28ac9640cb7693c2394e2f10cdefdfabc0
Parents: fc08e3b
Author: Vaibhav Gumashta <vg...@hortonworks.com>
Authored: Thu Feb 9 14:48:54 2017 -0800
Committer: Vaibhav Gumashta <vg...@hortonworks.com>
Committed: Thu Feb 9 14:48:54 2017 -0800

----------------------------------------------------------------------
 .../org/apache/hive/jdbc/HiveBaseResultSet.java | 297 ++++++-------
 .../apache/hive/jdbc/HiveCallableStatement.java | 421 ++++++++++---------
 .../org/apache/hive/jdbc/HiveConnection.java    |  63 +--
 .../org/apache/hive/jdbc/HiveDataSource.java    |  12 +-
 .../apache/hive/jdbc/HiveDatabaseMetaData.java  | 215 +++++-----
 .../apache/hive/jdbc/HivePreparedStatement.java |  73 ++--
 .../apache/hive/jdbc/HiveQueryResultSet.java    |   7 +-
 .../apache/hive/jdbc/HiveResultSetMetaData.java |  19 +-
 .../org/apache/hive/jdbc/HiveStatement.java     |  32 +-
 .../org/apache/hive/jdbc/HiveStatementTest.java |  14 +-
 10 files changed, 585 insertions(+), 568 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/2429bb28/jdbc/src/java/org/apache/hive/jdbc/HiveBaseResultSet.java
----------------------------------------------------------------------
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HiveBaseResultSet.java b/jdbc/src/java/org/apache/hive/jdbc/HiveBaseResultSet.java
index 6d4b2b1..ade1900 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HiveBaseResultSet.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HiveBaseResultSet.java
@@ -35,6 +35,7 @@ import java.sql.ResultSet;
 import java.sql.ResultSetMetaData;
 import java.sql.RowId;
 import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
 import java.sql.SQLWarning;
 import java.sql.SQLXML;
 import java.sql.Statement;
@@ -67,23 +68,23 @@ public abstract class HiveBaseResultSet implements ResultSet {
   private TableSchema schema;
 
   public boolean absolute(int row) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void afterLast() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void beforeFirst() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void cancelRowUpdates() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void deleteRow() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int findColumn(String columnName) throws SQLException {
@@ -106,23 +107,23 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public boolean first() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Array getArray(int i) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Array getArray(String colName) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public InputStream getAsciiStream(int columnIndex) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public InputStream getAsciiStream(String columnName) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
@@ -177,11 +178,11 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public Blob getBlob(int i) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Blob getBlob(String colName) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean getBoolean(int columnIndex) throws SQLException {
@@ -217,27 +218,27 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public byte[] getBytes(int columnIndex) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public byte[] getBytes(String columnName) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Reader getCharacterStream(int columnIndex) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Reader getCharacterStream(String columnName) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Clob getClob(int i) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Clob getClob(String colName) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getConcurrency() throws SQLException {
@@ -245,7 +246,7 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public String getCursorName() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Date getDate(int columnIndex) throws SQLException {
@@ -274,11 +275,11 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public Date getDate(int columnIndex, Calendar cal) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Date getDate(String columnName, Calendar cal) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public double getDouble(int columnIndex) throws SQLException {
@@ -307,7 +308,7 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public int getFetchSize() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public float getFloat(int columnIndex) throws SQLException {
@@ -332,7 +333,7 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public int getHoldability() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getInt(int columnIndex) throws SQLException {
@@ -384,27 +385,27 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public Reader getNCharacterStream(int arg0) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Reader getNCharacterStream(String arg0) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public NClob getNClob(int arg0) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public NClob getNClob(String columnLabel) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public String getNString(int columnIndex) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public String getNString(String columnLabel) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   private Object getColumnValue(int columnIndex) throws SQLException {
@@ -468,39 +469,39 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public Object getObject(int i, Map<String, Class<?>> map) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Object getObject(String colName, Map<String, Class<?>> map) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Ref getRef(int i) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Ref getRef(String colName) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getRow() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public RowId getRowId(int columnIndex) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public RowId getRowId(String columnLabel) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public SQLXML getSQLXML(int columnIndex) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public SQLXML getSQLXML(String columnLabel) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public short getShort(int columnIndex) throws SQLException {
@@ -548,19 +549,19 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public Time getTime(int columnIndex) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Time getTime(String columnName) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Time getTime(int columnIndex, Calendar cal) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Time getTime(String columnName, Calendar cal) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Timestamp getTimestamp(int columnIndex) throws SQLException {
@@ -582,11 +583,11 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public int getType() throws SQLException {
@@ -594,67 +595,67 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public URL getURL(int columnIndex) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public URL getURL(String columnName) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public InputStream getUnicodeStream(int columnIndex) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public InputStream getUnicodeStream(String columnName) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void insertRow() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean isAfterLast() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean isBeforeFirst() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean isClosed() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean isFirst() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean isLast() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean last() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void moveToCurrentRow() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void moveToInsertRow() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean previous() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void refreshRow() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean relative(int rows) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean rowDeleted() throws SQLException {
@@ -670,358 +671,358 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public void setFetchDirection(int direction) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void setFetchSize(int rows) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateArray(int columnIndex, Array x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateArray(String columnName, Array x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateAsciiStream(int columnIndex, InputStream x, int length)
           throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateAsciiStream(String columnName, InputStream x, int length)
           throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateAsciiStream(int columnIndex, InputStream x, long length)
           throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateAsciiStream(String columnLabel, InputStream x, long length)
           throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBinaryStream(int columnIndex, InputStream x, int length)
           throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBinaryStream(String columnName, InputStream x, int length)
           throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBinaryStream(int columnIndex, InputStream x, long length)
           throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBinaryStream(String columnLabel, InputStream x, long length)
           throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBlob(int columnIndex, Blob x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBlob(String columnName, Blob x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBlob(int columnIndex, InputStream inputStream, long length)
           throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBlob(String columnLabel, InputStream inputStream,
                          long length) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBoolean(int columnIndex, boolean x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBoolean(String columnName, boolean x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateByte(int columnIndex, byte x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateByte(String columnName, byte x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBytes(int columnIndex, byte[] x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateBytes(String columnName, byte[] x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateCharacterStream(int columnIndex, Reader x, int length)
           throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateCharacterStream(String columnName, Reader reader, int length)
           throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateCharacterStream(int columnIndex, Reader x, long length)
           throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateCharacterStream(String columnLabel, Reader reader,
                                     long length) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateClob(int columnIndex, Clob x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateClob(String columnName, Clob x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateClob(int columnIndex, Reader reader) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateClob(String columnLabel, Reader reader) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateDate(int columnIndex, Date x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateDate(String columnName, Date x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateDouble(int columnIndex, double x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateDouble(String columnName, double x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateFloat(int columnIndex, float x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateFloat(String columnName, float x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateInt(int columnIndex, int x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateInt(String columnName, int x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateLong(int columnIndex, long x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateLong(String columnName, long x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateNCharacterStream(String columnLabel, Reader reader,
                                      long length) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateNClob(int columnIndex, NClob clob) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateNClob(String columnLabel, NClob clob) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateNClob(int columnIndex, Reader reader) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateNClob(String columnLabel, Reader reader) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateNString(int columnIndex, String string) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateNString(String columnLabel, String string) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateNull(int columnIndex) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateNull(String columnName) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateObject(int columnIndex, Object x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateObject(String columnName, Object x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateObject(int columnIndex, Object x, int scale) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateObject(String columnName, Object x, int scale) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateRef(int columnIndex, Ref x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateRef(String columnName, Ref x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateRow() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateRowId(int columnIndex, RowId x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateRowId(String columnLabel, RowId x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateShort(int columnIndex, short x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateShort(String columnName, short x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateString(int columnIndex, String x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateString(String columnName, String x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateTime(int columnIndex, Time x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateTime(String columnName, Time x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void updateTimestamp(String columnName, Timestamp x) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public SQLWarning getWarnings() throws SQLException {
@@ -1033,7 +1034,7 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public void close() throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean wasNull() throws SQLException {
@@ -1041,11 +1042,11 @@ public abstract class HiveBaseResultSet implements ResultSet {
   }
 
   public boolean isWrapperFor(Class<?> iface) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public <T> T unwrap(Class<T> iface) throws SQLException {
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   protected void setSchema(TableSchema schema) {


[2/3] hive git commit: HIVE-15730: JDBC should use SQLFeatureNotSupportedException where appropriate instead of SQLException (Sankar Hariappan reviewed by Vaibhav Gumashta)

Posted by vg...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/2429bb28/jdbc/src/java/org/apache/hive/jdbc/HiveCallableStatement.java
----------------------------------------------------------------------
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HiveCallableStatement.java b/jdbc/src/java/org/apache/hive/jdbc/HiveCallableStatement.java
index d04f786..8947dc8 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HiveCallableStatement.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HiveCallableStatement.java
@@ -34,6 +34,7 @@ import java.sql.ResultSet;
 import java.sql.ResultSetMetaData;
 import java.sql.RowId;
 import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
 import java.sql.SQLWarning;
 import java.sql.SQLXML;
 import java.sql.Time;
@@ -63,7 +64,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Array getArray(int i) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -74,7 +75,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Array getArray(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -85,7 +86,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public BigDecimal getBigDecimal(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -96,7 +97,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public BigDecimal getBigDecimal(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -107,7 +108,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -118,7 +119,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Blob getBlob(int i) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -129,7 +130,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Blob getBlob(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -140,7 +141,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public boolean getBoolean(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -151,7 +152,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public boolean getBoolean(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -162,7 +163,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public byte getByte(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -173,7 +174,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public byte getByte(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -184,7 +185,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public byte[] getBytes(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -195,7 +196,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public byte[] getBytes(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -206,7 +207,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Reader getCharacterStream(int arg0) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -217,7 +218,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Reader getCharacterStream(String arg0) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -228,7 +229,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Clob getClob(int i) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -239,7 +240,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Clob getClob(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -250,7 +251,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Date getDate(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -261,7 +262,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Date getDate(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -272,7 +273,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Date getDate(int parameterIndex, Calendar cal) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -284,7 +285,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Date getDate(String parameterName, Calendar cal) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -295,7 +296,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public double getDouble(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -306,7 +307,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public double getDouble(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -317,7 +318,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public float getFloat(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -328,7 +329,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public float getFloat(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -339,7 +340,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int getInt(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -350,7 +351,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int getInt(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -361,7 +362,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public long getLong(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -372,7 +373,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public long getLong(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -383,7 +384,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Reader getNCharacterStream(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -394,7 +395,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Reader getNCharacterStream(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -405,7 +406,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public NClob getNClob(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -416,7 +417,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public NClob getNClob(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -427,7 +428,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public String getNString(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -438,7 +439,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public String getNString(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -449,7 +450,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Object getObject(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -460,17 +461,17 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Object getObject(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public <T> T getObject(int parameterIndex, Class<T> type) throws SQLException {
     // TODO JDK 1.7
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public <T> T getObject(String parameterName, Class<T> type) throws SQLException {
     // TODO JDK 1.7
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -481,7 +482,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Object getObject(int i, Map<String, Class<?>> map) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -492,7 +493,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Object getObject(String parameterName, Map<String, Class<?>> map) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -503,7 +504,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Ref getRef(int i) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -514,7 +515,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Ref getRef(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -525,7 +526,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public RowId getRowId(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -536,7 +537,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public RowId getRowId(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -547,7 +548,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public SQLXML getSQLXML(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -558,7 +559,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public SQLXML getSQLXML(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -569,7 +570,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public short getShort(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -580,7 +581,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public short getShort(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -591,7 +592,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public String getString(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -602,7 +603,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public String getString(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -613,7 +614,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Time getTime(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -624,7 +625,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Time getTime(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -635,7 +636,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Time getTime(int parameterIndex, Calendar cal) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -647,7 +648,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Time getTime(String parameterName, Calendar cal) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -658,7 +659,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Timestamp getTimestamp(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -669,7 +670,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Timestamp getTimestamp(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -680,7 +681,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -692,7 +693,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -703,7 +704,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public URL getURL(int parameterIndex) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -714,7 +715,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public URL getURL(String parameterName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -725,7 +726,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void registerOutParameter(int parameterIndex, int sqlType) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -736,7 +737,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void registerOutParameter(String parameterName, int sqlType) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -748,7 +749,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void registerOutParameter(int parameterIndex, int sqlType, int scale)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -761,7 +762,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void registerOutParameter(int paramIndex, int sqlType, String typeName)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -774,7 +775,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void registerOutParameter(String parameterName, int sqlType, int scale)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -787,7 +788,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void registerOutParameter(String parameterName, int sqlType,
       String typeName) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -800,7 +801,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setAsciiStream(String parameterName, InputStream x)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -813,7 +814,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setAsciiStream(String parameterName, InputStream x, int length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -826,7 +827,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setAsciiStream(String parameterName, InputStream x, long length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -839,7 +840,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setBigDecimal(String parameterName, BigDecimal x)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -852,7 +853,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setBinaryStream(String parameterName, InputStream x)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -865,7 +866,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setBinaryStream(String parameterName, InputStream x, int length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -878,7 +879,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setBinaryStream(String parameterName, InputStream x, long length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -889,7 +890,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setBlob(String parameterName, Blob x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -902,7 +903,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setBlob(String parameterName, InputStream inputStream)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -915,7 +916,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setBlob(String parameterName, InputStream inputStream, long length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -926,7 +927,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setBoolean(String parameterName, boolean x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -937,7 +938,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setByte(String parameterName, byte x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -948,7 +949,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setBytes(String parameterName, byte[] x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -961,7 +962,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setCharacterStream(String parameterName, Reader reader)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -974,7 +975,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setCharacterStream(String parameterName, Reader reader, int length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -987,7 +988,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setCharacterStream(String parameterName, Reader reader,
       long length) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -998,7 +999,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setClob(String parameterName, Clob x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1009,7 +1010,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setClob(String parameterName, Reader reader) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1022,7 +1023,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setClob(String parameterName, Reader reader, long length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1033,7 +1034,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setDate(String parameterName, Date x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1046,7 +1047,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setDate(String parameterName, Date x, Calendar cal)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1057,7 +1058,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setDouble(String parameterName, double x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1068,7 +1069,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setFloat(String parameterName, float x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1079,7 +1080,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setInt(String parameterName, int x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1090,7 +1091,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setLong(String parameterName, long x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1103,7 +1104,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setNCharacterStream(String parameterName, Reader value)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1116,7 +1117,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setNCharacterStream(String parameterName, Reader value,
       long length) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1127,7 +1128,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setNClob(String parameterName, NClob value) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1138,7 +1139,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setNClob(String parameterName, Reader reader) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1151,7 +1152,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setNClob(String parameterName, Reader reader, long length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1164,7 +1165,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setNString(String parameterName, String value)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1175,7 +1176,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setNull(String parameterName, int sqlType) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1188,7 +1189,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setNull(String parameterName, int sqlType, String typeName)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1200,7 +1201,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setObject(String parameterName, Object x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1213,7 +1214,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setObject(String parameterName, Object x, int targetSqlType)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1226,7 +1227,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setObject(String parameterName, Object x, int targetSqlType,
       int scale) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1237,7 +1238,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setRowId(String parameterName, RowId x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1250,7 +1251,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setSQLXML(String parameterName, SQLXML xmlObject)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1261,7 +1262,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setShort(String parameterName, short x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1273,7 +1274,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setString(String parameterName, String x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1284,7 +1285,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setTime(String parameterName, Time x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1297,7 +1298,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setTime(String parameterName, Time x, Calendar cal)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1310,7 +1311,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setTimestamp(String parameterName, Timestamp x)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1323,7 +1324,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setTimestamp(String parameterName, Timestamp x, Calendar cal)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1334,7 +1335,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setURL(String parameterName, URL val) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1345,7 +1346,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public boolean wasNull() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1356,7 +1357,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void addBatch() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1367,7 +1368,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void clearParameters() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1378,7 +1379,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public boolean execute() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1399,7 +1400,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int executeUpdate() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1410,7 +1411,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public ResultSetMetaData getMetaData() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1421,7 +1422,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public ParameterMetaData getParameterMetaData() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1432,7 +1433,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setArray(int i, Array x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1443,7 +1444,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setAsciiStream(int arg0, InputStream arg1) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1456,7 +1457,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setAsciiStream(int parameterIndex, InputStream x, int length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1469,7 +1470,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setAsciiStream(int arg0, InputStream arg1, long arg2)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1481,7 +1482,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setBigDecimal(int parameterIndex, BigDecimal x)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1493,7 +1494,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setBinaryStream(int parameterIndex, InputStream x)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1506,7 +1507,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setBinaryStream(int parameterIndex, InputStream x, int length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1519,7 +1520,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setBinaryStream(int parameterIndex, InputStream x, long length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1530,7 +1531,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setBlob(int i, Blob x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1542,7 +1543,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setBlob(int parameterIndex, InputStream inputStream)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1554,7 +1555,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setBlob(int parameterIndex, InputStream inputStream, long length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1565,7 +1566,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setBoolean(int parameterIndex, boolean x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1576,7 +1577,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setByte(int parameterIndex, byte x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1587,7 +1588,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setBytes(int parameterIndex, byte[] x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1599,7 +1600,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setCharacterStream(int parameterIndex, Reader reader)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1612,7 +1613,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setCharacterStream(int parameterIndex, Reader reader, int length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1625,7 +1626,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setCharacterStream(int parameterIndex, Reader reader, long length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1636,7 +1637,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setClob(int i, Clob x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1647,7 +1648,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setClob(int parameterIndex, Reader reader) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1659,7 +1660,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setClob(int parameterIndex, Reader reader, long length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1670,7 +1671,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setDate(int parameterIndex, Date x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1683,7 +1684,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setDate(int parameterIndex, Date x, Calendar cal)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1694,7 +1695,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setDouble(int parameterIndex, double x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1705,7 +1706,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setFloat(int parameterIndex, float x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1716,7 +1717,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setInt(int parameterIndex, int x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1727,7 +1728,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setLong(int parameterIndex, long x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1739,7 +1740,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setNCharacterStream(int parameterIndex, Reader value)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1752,7 +1753,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setNCharacterStream(int parameterIndex, Reader value, long length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1763,7 +1764,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setNClob(int parameterIndex, NClob value) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1774,7 +1775,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setNClob(int parameterIndex, Reader reader) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1786,7 +1787,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setNClob(int parameterIndex, Reader reader, long length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1797,7 +1798,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setNString(int parameterIndex, String value) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1808,7 +1809,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setNull(int parameterIndex, int sqlType) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1820,7 +1821,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setNull(int paramIndex, int sqlType, String typeName)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1831,7 +1832,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setObject(int parameterIndex, Object x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1843,7 +1844,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setObject(int parameterIndex, Object x, int targetSqlType)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1855,7 +1856,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setObject(int parameterIndex, Object x, int targetSqlType,
       int scale) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1866,7 +1867,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setRef(int i, Ref x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1877,7 +1878,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setRowId(int parameterIndex, RowId x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1889,7 +1890,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setSQLXML(int parameterIndex, SQLXML xmlObject)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1900,7 +1901,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setShort(int parameterIndex, short x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1911,7 +1912,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setString(int parameterIndex, String x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1922,7 +1923,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setTime(int parameterIndex, Time x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1935,7 +1936,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setTime(int parameterIndex, Time x, Calendar cal)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1946,7 +1947,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1959,7 +1960,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1970,7 +1971,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setURL(int parameterIndex, URL x) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1983,7 +1984,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public void setUnicodeStream(int parameterIndex, InputStream x, int length)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1994,7 +1995,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void addBatch(String sql) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2005,7 +2006,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void cancel() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2016,7 +2017,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void clearBatch() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2027,7 +2028,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void clearWarnings() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2038,17 +2039,17 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void close() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void closeOnCompletion() throws SQLException {
     // JDK 1.7
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public boolean isCloseOnCompletion() throws SQLException {
     // JDK 1.7
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2059,7 +2060,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public boolean execute(String sql) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2070,7 +2071,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public boolean execute(String sql, int autoGeneratedKeys) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2081,7 +2082,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public boolean execute(String sql, int[] columnIndexes) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2092,7 +2093,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public boolean execute(String sql, String[] columnNames) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2103,7 +2104,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int[] executeBatch() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2114,7 +2115,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public ResultSet executeQuery(String sql) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2125,7 +2126,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int executeUpdate(String sql) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2137,7 +2138,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public int executeUpdate(String sql, int autoGeneratedKeys)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2148,7 +2149,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int executeUpdate(String sql, int[] columnIndexes) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2160,7 +2161,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
   public int executeUpdate(String sql, String[] columnNames)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2181,7 +2182,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int getFetchDirection() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2192,7 +2193,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int getFetchSize() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2203,7 +2204,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public ResultSet getGeneratedKeys() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2214,7 +2215,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int getMaxFieldSize() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2225,7 +2226,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int getMaxRows() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2236,7 +2237,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public boolean getMoreResults() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2247,7 +2248,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public boolean getMoreResults(int current) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2258,7 +2259,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int getQueryTimeout() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2269,7 +2270,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public ResultSet getResultSet() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2280,7 +2281,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int getResultSetConcurrency() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2291,7 +2292,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int getResultSetHoldability() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2302,7 +2303,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int getResultSetType() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2313,7 +2314,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public int getUpdateCount() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2324,7 +2325,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public SQLWarning getWarnings() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2335,7 +2336,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public boolean isClosed() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2346,7 +2347,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public boolean isPoolable() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2357,7 +2358,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setCursorName(String name) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2368,7 +2369,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setEscapeProcessing(boolean enable) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2379,7 +2380,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setFetchDirection(int direction) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2390,7 +2391,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setFetchSize(int rows) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2401,7 +2402,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setMaxFieldSize(int max) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2412,7 +2413,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setMaxRows(int max) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2423,7 +2424,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setPoolable(boolean arg0) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2434,7 +2435,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public void setQueryTimeout(int seconds) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2445,7 +2446,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public boolean isWrapperFor(Class<?> iface) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -2456,7 +2457,7 @@ public class HiveCallableStatement implements java.sql.CallableStatement {
 
   public <T> T unwrap(Class<T> iface) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
 }

http://git-wip-us.apache.org/repos/asf/hive/blob/2429bb28/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
----------------------------------------------------------------------
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java b/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
index d6cf744..5b71cde 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
@@ -91,6 +91,7 @@ import java.sql.PreparedStatement;
 import java.sql.ResultSet;
 import java.sql.SQLClientInfoException;
 import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
 import java.sql.SQLWarning;
 import java.sql.SQLXML;
 import java.sql.Savepoint;
@@ -740,7 +741,7 @@ public class HiveConnection implements java.sql.Connection {
 
   public void abort(Executor executor) throws SQLException {
     // JDK 1.7
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public String getDelegationToken(String owner, String renewer) throws SQLException {
@@ -824,7 +825,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public void commit() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -837,7 +838,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public Array createArrayOf(String arg0, Object[] arg1) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -849,7 +850,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public Blob createBlob() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -861,7 +862,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public Clob createClob() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -873,7 +874,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public NClob createNClob() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -885,7 +886,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public SQLXML createSQLXML() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /**
@@ -935,7 +936,7 @@ public class HiveConnection implements java.sql.Connection {
   public Statement createStatement(int resultSetType, int resultSetConcurrency,
       int resultSetHoldability) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -948,7 +949,7 @@ public class HiveConnection implements java.sql.Connection {
   public Struct createStruct(String typeName, Object[] attributes)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -982,7 +983,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public Properties getClientInfo() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -994,7 +995,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public String getClientInfo(String name) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1006,7 +1007,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public int getHoldability() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1025,7 +1026,7 @@ public class HiveConnection implements java.sql.Connection {
 
   public int getNetworkTimeout() throws SQLException {
     // JDK 1.7
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public String getSchema() throws SQLException {
@@ -1061,7 +1062,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public Map<String, Class<?>> getTypeMap() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1128,7 +1129,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public String nativeSQL(String sql) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1140,7 +1141,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public CallableStatement prepareCall(String sql) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1153,7 +1154,7 @@ public class HiveConnection implements java.sql.Connection {
   public CallableStatement prepareCall(String sql, int resultSetType,
       int resultSetConcurrency) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1166,7 +1167,7 @@ public class HiveConnection implements java.sql.Connection {
   public CallableStatement prepareCall(String sql, int resultSetType,
       int resultSetConcurrency, int resultSetHoldability) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1202,7 +1203,7 @@ public class HiveConnection implements java.sql.Connection {
   public PreparedStatement prepareStatement(String sql, int[] columnIndexes)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1216,7 +1217,7 @@ public class HiveConnection implements java.sql.Connection {
   public PreparedStatement prepareStatement(String sql, String[] columnNames)
       throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1241,7 +1242,7 @@ public class HiveConnection implements java.sql.Connection {
   public PreparedStatement prepareStatement(String sql, int resultSetType,
       int resultSetConcurrency, int resultSetHoldability) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1253,7 +1254,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public void releaseSavepoint(Savepoint savepoint) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1265,7 +1266,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public void rollback() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1277,7 +1278,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public void rollback(Savepoint savepoint) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1353,12 +1354,12 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public void setHoldability(int holdability) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
     // JDK 1.7
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1390,7 +1391,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public Savepoint setSavepoint() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1402,7 +1403,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public Savepoint setSavepoint(String name) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public void setSchema(String schema) throws SQLException {
@@ -1438,7 +1439,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1450,7 +1451,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public boolean isWrapperFor(Class<?> iface) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -1462,7 +1463,7 @@ public class HiveConnection implements java.sql.Connection {
   @Override
   public <T> T unwrap(Class<T> iface) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public TProtocolVersion getProtocol() {

http://git-wip-us.apache.org/repos/asf/hive/blob/2429bb28/jdbc/src/java/org/apache/hive/jdbc/HiveDataSource.java
----------------------------------------------------------------------
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HiveDataSource.java b/jdbc/src/java/org/apache/hive/jdbc/HiveDataSource.java
index 58feb97..4cf4927 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HiveDataSource.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HiveDataSource.java
@@ -75,7 +75,7 @@ public class HiveDataSource implements DataSource {
   @Override
   public PrintWriter getLogWriter() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -87,7 +87,7 @@ public class HiveDataSource implements DataSource {
   @Override
   public int getLoginTimeout() throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   public Logger getParentLogger() throws SQLFeatureNotSupportedException {
@@ -104,7 +104,7 @@ public class HiveDataSource implements DataSource {
   @Override
   public void setLogWriter(PrintWriter arg0) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -116,7 +116,7 @@ public class HiveDataSource implements DataSource {
   @Override
   public void setLoginTimeout(int arg0) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -128,7 +128,7 @@ public class HiveDataSource implements DataSource {
   @Override
   public boolean isWrapperFor(Class<?> arg0) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
   /*
@@ -140,7 +140,7 @@ public class HiveDataSource implements DataSource {
   @Override
   public <T> T unwrap(Class<T> arg0) throws SQLException {
     // TODO Auto-generated method stub
-    throw new SQLException("Method not supported");
+    throw new SQLFeatureNotSupportedException("Method not supported");
   }
 
 }