diff --git a/jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java b/jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java index d1cfd7eb2c56..838c136f402d 100644 --- a/jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java +++ b/jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java @@ -744,12 +744,12 @@ public T getObject(int columnIndex, Class type) throws SQLException { }; } - public String getURL() throws SQLException { - throw new SQLFeatureNotSupportedException("Method not supported"); + public String getURL() { + return connection.getConnectedUrl(); } public String getUserName() throws SQLException { - throw new SQLFeatureNotSupportedException("Method not supported"); + return connection.getConnParams().getHiveConfs().get("user"); } public ResultSet getVersionColumns(String catalog, String schema, String table)