1
0

[MINOR] Remove the declaration of thrown RuntimeException (#1305)

This commit is contained in:
lamber-ken
2020-02-05 23:23:20 +08:00
committed by GitHub
parent 425e3e6c78
commit 46842f4e92
8 changed files with 23 additions and 39 deletions

View File

@@ -498,12 +498,12 @@ public class HoodieHiveClient {
*
* @param sql SQL statement to execute
*/
public CommandProcessorResponse updateHiveSQLUsingHiveDriver(String sql) throws HoodieHiveSyncException {
public CommandProcessorResponse updateHiveSQLUsingHiveDriver(String sql) {
List<CommandProcessorResponse> responses = updateHiveSQLs(Collections.singletonList(sql));
return responses.get(responses.size() - 1);
}
private List<CommandProcessorResponse> updateHiveSQLs(List<String> sqls) throws HoodieHiveSyncException {
private List<CommandProcessorResponse> updateHiveSQLs(List<String> sqls) {
SessionState ss = null;
org.apache.hadoop.hive.ql.Driver hiveDriver = null;
List<CommandProcessorResponse> responses = new ArrayList<>();