baiyangtx commented on code in PR #4116:
URL: https://github.com/apache/amoro/pull/4116#discussion_r2922005517
##########
amoro-ams/src/main/java/org/apache/amoro/server/process/TableProcessMeta.java:
##########
@@ -188,6 +191,24 @@ public static TableProcessMeta
fromTableProcessStore(TableProcessStore tableProc
return tableProcessMeta;
}
+ public static TableProcessMeta createProcessMeta(TableProcess process) {
+ TableProcessMeta tableProcessMeta = new TableProcessMeta();
+ tableProcessMeta.setProcessId(idGenerator.generateId());
+ tableProcessMeta.setTableId(process.getTableIdentifier().getId());
+ tableProcessMeta.setExternalProcessIdentifier("");
+ tableProcessMeta.setStatus(ProcessStatus.PENDING);
+ tableProcessMeta.setProcessType(process.getAction().getName());
+ tableProcessMeta.setProcessStage(process.getProcessStage());
+ tableProcessMeta.setExecutionEngine(process.getExecutionEngine());
+ tableProcessMeta.setRetryNumber(1);
Review Comment:
It should be 0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]