Skip to content

Commit

Permalink
Stopping Hive from throwing an exception for not finding default data…
Browse files Browse the repository at this point in the history
…base on bootstrap. This does not exist in DAL HMS (#17)
  • Loading branch information
Mainak Ghosh authored Mar 19, 2019
1 parent 84fa4ae commit b2855b0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ private void configureSession(Map<String, String> sessionConfMap) throws HiveSQL
} else if (key.startsWith("use:")) {
try {
if (sessionHive.getDatabase(entry.getValue()) == null) {
throw new HiveSQLException("Database " + entry.getValue() + " does not exist");
//throw new HiveSQLException("Database " + entry.getValue() + " does not exist");
continue;
}
} catch (HiveException e) {
throw new HiveSQLException(e);
Expand Down

0 comments on commit b2855b0

Please sign in to comment.