Skip to content

Commit

Permalink
refactor: remove ExecutionContext.execute(stmt) completely (#3561)
Browse files Browse the repository at this point in the history
* refactor: execute(stmt) for execute(ctx, stmt) on StatementExecutor
* refactor: execute(stmt) for execute(ctx, stmt) on StandaloneExecutor
* refactor: execute(stmt) for execute(ctx, stmt) on KsqlEngineTestUtil
* refactor: remove execute(stmt) from KsqlExecutionContext interface
  • Loading branch information
spena authored Oct 14, 2019
1 parent 56b46de commit c0bfa41
Show file tree
Hide file tree
Showing 15 changed files with 367 additions and 143 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,6 @@ public interface KsqlExecutionContext {
*/
PreparedStatement<?> prepare(ParsedStatement stmt);

/**
* Executes a statement using the engine's primary service context.
*
* @see #execute(ServiceContext, ConfiguredStatement)
*/
ExecuteResult execute(ConfiguredStatement<?> statement);

/**
* Execute the supplied statement, updating the meta store and registering any query.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,6 @@ public PreparedStatement<?> prepare(final ParsedStatement stmt) {
return primaryContext.prepare(stmt);
}

@Override
public ExecuteResult execute(
final ConfiguredStatement<?> statement
) {
return execute(primaryContext.getServiceContext(), statement);
}

@Override
public ExecuteResult execute(
final ServiceContext serviceContext,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,6 @@ public PreparedStatement<?> prepare(final ParsedStatement stmt) {
return engineContext.prepare(stmt);
}

@Override
public ExecuteResult execute(
final ConfiguredStatement<?> statement
) {
return execute(engineContext.getServiceContext(), statement);
}

@Override
public ExecuteResult execute(
final ServiceContext serviceContext,
Expand Down
Loading

0 comments on commit c0bfa41

Please sign in to comment.