hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgumas...@apache.org
Subject [3/3] hive git commit: HIVE-15730: JDBC should use SQLFeatureNotSupportedException where appropriate instead of SQLException (Sankar Hariappan reviewed by Vaibhav Gumashta)
Date Thu, 09 Feb 2017 22:49:23 GMT
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 <vgumashta@hortonworks.com>
Authored: Thu Feb 9 14:48:54 2017 -0800
Committer: Vaibhav Gumashta <vgumashta@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) {


Mime
View raw message