Skip to content

Commit

Permalink
Merge pull request #328 from hjafarpour/KSQL-376-droptable-issue
Browse files Browse the repository at this point in the history
Fixed the drop table issue.
  • Loading branch information
hjafarpour authored Sep 30, 2017
2 parents f2a1a9f + bbf636d commit dc1ad22
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,12 @@ private void registerDdlCommandTasks() {
return statement.toString();
});

ddlCommandTasks.put(DropTable.class, (statement, statementText, properties) -> {
DropSourceCommand dropSourceCommand = new DropSourceCommand((DropTable) statement);
new DDLCommandExec(ksqlEngine.getMetaStore().clone()).execute(dropSourceCommand);
return statement.toString();
});

ddlCommandTasks.put(TerminateQuery.class, (statement, statementText, properties) -> statement.toString());
}

Expand Down

0 comments on commit dc1ad22

Please sign in to comment.