Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: preliminary adaptation of gaussdb #12061

Closed
wants to merge 14 commits into from
2 changes: 2 additions & 0 deletions backend/api/v1/database_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,8 @@ func (s *DatabaseService) getParserEngine(ctx context.Context, request *v1pb.Dif
engine = storepb.Engine_ORACLE
case storepb.Engine_GAUSSDB:
engine = storepb.Engine_GAUSSDB
case storepb.Engine_MSSQL:
engine = storepb.Engine_MSSQL
default:
return engine, status.Errorf(codes.InvalidArgument, fmt.Sprintf("invalid engine type %v", instance.Engine))
}
Expand Down
2 changes: 1 addition & 1 deletion backend/runner/taskrun/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func executeMigration(
switch task.Type {
case api.TaskDatabaseSchemaUpdate, api.TaskDatabaseDataUpdate:
switch instance.Engine {
case storepb.Engine_MYSQL, storepb.Engine_TIDB, storepb.Engine_OCEANBASE, storepb.Engine_STARROCKS, storepb.Engine_DORIS, storepb.Engine_POSTGRES, storepb.Engine_REDSHIFT, storepb.Engine_RISINGWAVE, storepb.Engine_ORACLE, storepb.Engine_DM, storepb.Engine_OCEANBASE_ORACLE, storepb.Engine_GAUSSDB:
case storepb.Engine_MYSQL, storepb.Engine_TIDB, storepb.Engine_OCEANBASE, storepb.Engine_STARROCKS, storepb.Engine_DORIS, storepb.Engine_POSTGRES, storepb.Engine_REDSHIFT, storepb.Engine_RISINGWAVE, storepb.Engine_ORACLE, storepb.Engine_DM, storepb.Engine_OCEANBASE_ORACLE, storepb.Engine_GAUSSDB, storepb.Engine_MSSQL:
opts.ChunkedSubmission = true
opts.UpdateExecutionStatus = func(detail *v1pb.TaskRun_ExecutionDetail) {
stateCfg.TaskRunExecutionStatuses.Store(taskRunUID,
Expand Down
Loading