Skip to content

Commit

Permalink
fixed formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
orzikhd committed Jul 11, 2017
1 parent e8f1e50 commit f155ddf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/edu/washington/escience/myria/api/SQLResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class SQLResource {
@POST
public Response createFunction(final String SQLQuery) throws DbException {
try {
server.executeSQLStatement(SQLQuery);
server.executeSQLStatement(SQLQuery);
} catch (Exception e) {
throw new DbException(e);
}
Expand Down
11 changes: 5 additions & 6 deletions src/edu/washington/escience/myria/parallel/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -1328,13 +1328,12 @@ public long persistDataset(final RelationKey relationKey)

/**
* Directly runs a command on the underlying database on all alive workers
*
*
* @param sqlSting command to run on the database
*/
public void executeSQLStatement(final String sqlString)
throws DbException, InterruptedException {
public void executeSQLStatement(final String sqlString) throws DbException, InterruptedException {
final Set<Integer> workers = getAliveWorkers();

/* Execute the SQL command on the set of workers */
try {
Map<Integer, SubQueryPlan> workerPlans = new HashMap<>();
Expand All @@ -1358,9 +1357,9 @@ public void executeSQLStatement(final String sqlString)
}
} catch (CatalogException e) {
throw new DbException(e);
}
}
}

/**
* Directly runs a command on the underlying database based on the selected workers
*
Expand Down

0 comments on commit f155ddf

Please sign in to comment.