Search in sources :

Example 1 with EndStatementSetOperation

use of org.apache.flink.table.operations.EndStatementSetOperation in project flink by apache.

the class SqlToOperationConverterTest method testEnd.

@Test
public void testEnd() {
    final String sql = "END";
    Operation operation = parse(sql, SqlDialect.DEFAULT);
    assertThat(operation).isInstanceOf(EndStatementSetOperation.class);
    final EndStatementSetOperation endStatementSetOperation = (EndStatementSetOperation) operation;
    assertThat(endStatementSetOperation.asSummaryString()).isEqualTo("END");
}
Also used : OperationMatchers.isCreateTableOperation(org.apache.flink.table.planner.utils.OperationMatchers.isCreateTableOperation) DropDatabaseOperation(org.apache.flink.table.operations.ddl.DropDatabaseOperation) SinkModifyOperation(org.apache.flink.table.operations.SinkModifyOperation) AlterTableOptionsOperation(org.apache.flink.table.operations.ddl.AlterTableOptionsOperation) AlterTableDropConstraintOperation(org.apache.flink.table.operations.ddl.AlterTableDropConstraintOperation) UseCatalogOperation(org.apache.flink.table.operations.UseCatalogOperation) UseDatabaseOperation(org.apache.flink.table.operations.UseDatabaseOperation) CreateViewOperation(org.apache.flink.table.operations.ddl.CreateViewOperation) ShowJarsOperation(org.apache.flink.table.operations.command.ShowJarsOperation) AlterDatabaseOperation(org.apache.flink.table.operations.ddl.AlterDatabaseOperation) QueryOperation(org.apache.flink.table.operations.QueryOperation) EndStatementSetOperation(org.apache.flink.table.operations.EndStatementSetOperation) UseModulesOperation(org.apache.flink.table.operations.UseModulesOperation) ShowFunctionsOperation(org.apache.flink.table.operations.ShowFunctionsOperation) CreateDatabaseOperation(org.apache.flink.table.operations.ddl.CreateDatabaseOperation) SetOperation(org.apache.flink.table.operations.command.SetOperation) LoadModuleOperation(org.apache.flink.table.operations.LoadModuleOperation) Operation(org.apache.flink.table.operations.Operation) ShowModulesOperation(org.apache.flink.table.operations.ShowModulesOperation) SourceQueryOperation(org.apache.flink.table.operations.SourceQueryOperation) UnloadModuleOperation(org.apache.flink.table.operations.UnloadModuleOperation) CreateTableOperation(org.apache.flink.table.operations.ddl.CreateTableOperation) RemoveJarOperation(org.apache.flink.table.operations.command.RemoveJarOperation) BeginStatementSetOperation(org.apache.flink.table.operations.BeginStatementSetOperation) AddJarOperation(org.apache.flink.table.operations.command.AddJarOperation) AlterTableAddConstraintOperation(org.apache.flink.table.operations.ddl.AlterTableAddConstraintOperation) ExplainOperation(org.apache.flink.table.operations.ExplainOperation) ResetOperation(org.apache.flink.table.operations.command.ResetOperation) StatementSetOperation(org.apache.flink.table.operations.StatementSetOperation) AlterTableRenameOperation(org.apache.flink.table.operations.ddl.AlterTableRenameOperation) EndStatementSetOperation(org.apache.flink.table.operations.EndStatementSetOperation) Test(org.junit.Test)

Aggregations

BeginStatementSetOperation (org.apache.flink.table.operations.BeginStatementSetOperation)1 EndStatementSetOperation (org.apache.flink.table.operations.EndStatementSetOperation)1 ExplainOperation (org.apache.flink.table.operations.ExplainOperation)1 LoadModuleOperation (org.apache.flink.table.operations.LoadModuleOperation)1 Operation (org.apache.flink.table.operations.Operation)1 QueryOperation (org.apache.flink.table.operations.QueryOperation)1 ShowFunctionsOperation (org.apache.flink.table.operations.ShowFunctionsOperation)1 ShowModulesOperation (org.apache.flink.table.operations.ShowModulesOperation)1 SinkModifyOperation (org.apache.flink.table.operations.SinkModifyOperation)1 SourceQueryOperation (org.apache.flink.table.operations.SourceQueryOperation)1 StatementSetOperation (org.apache.flink.table.operations.StatementSetOperation)1 UnloadModuleOperation (org.apache.flink.table.operations.UnloadModuleOperation)1 UseCatalogOperation (org.apache.flink.table.operations.UseCatalogOperation)1 UseDatabaseOperation (org.apache.flink.table.operations.UseDatabaseOperation)1 UseModulesOperation (org.apache.flink.table.operations.UseModulesOperation)1 AddJarOperation (org.apache.flink.table.operations.command.AddJarOperation)1 RemoveJarOperation (org.apache.flink.table.operations.command.RemoveJarOperation)1 ResetOperation (org.apache.flink.table.operations.command.ResetOperation)1 SetOperation (org.apache.flink.table.operations.command.SetOperation)1 ShowJarsOperation (org.apache.flink.table.operations.command.ShowJarsOperation)1