feat: add wait and timeout field (#303)
* feat: add `wait` and `timeout` field * chore: remove `wait` from `Repartition` Signed-off-by: WenyXu <wenymedia@gmail.com> * fmt Signed-off-by: WenyXu <wenymedia@gmail.com> * fmt Signed-off-by: WenyXu <wenymedia@gmail.com> * fmt Signed-off-by: WenyXu <wenymedia@gmail.com> --------- Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
@@ -166,8 +166,6 @@ message Repartition {
|
||||
repeated string from_partition_exprs = 1;
|
||||
// The into partition expressions serialized in JSON format.
|
||||
repeated string into_partition_exprs = 2;
|
||||
// Wait for the repartition to complete.
|
||||
bool wait = 3;
|
||||
}
|
||||
|
||||
message DropTableExpr {
|
||||
|
||||
@@ -104,7 +104,19 @@ message CommentOnTask {
|
||||
|
||||
message DdlTaskRequest {
|
||||
RequestHeader header = 1;
|
||||
// The query context for the ddl procedures.
|
||||
QueryContext query_context = 64;
|
||||
// The timeout will be passed to the procedure.
|
||||
//
|
||||
// Note: Each procedure may implement its own timeout handling mechanism.
|
||||
bool wait = 65;
|
||||
// The flag that controls whether to wait for the procedure to complete.
|
||||
//
|
||||
// If wait is `true`, the procedure will wait for completion(success or failure) and the result will be returned.
|
||||
// Otherwise, the procedure will be submitted and return the [ProcedureId](common_procedure::ProcedureId) immediately.
|
||||
//
|
||||
// Note: The value of `wait` is independent of the `timeout` option. If a procedure ignores the `timeout` and `wait` is set to true, the operation returns until the procedure completes.
|
||||
uint32 timeout_secs = 66;
|
||||
|
||||
oneof task {
|
||||
CreateTableTask create_table_task = 2;
|
||||
|
||||
Reference in New Issue
Block a user