Skip to content

Commit e3a34df

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add QueryCancellationAction message in executor protos
PiperOrigin-RevId: 633451546
1 parent 7e73d48 commit e3a34df

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

google/spanner/executor/v1/cloud_executor.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ message SpannerAction {
132132

133133
// Action to execute change stream query.
134134
ExecuteChangeStreamQuery execute_change_stream_query = 50;
135+
136+
// Query cancellation action for testing the cancellation of a query.
137+
QueryCancellationAction query_cancellation = 51;
135138
}
136139
}
137140

@@ -1048,6 +1051,16 @@ message GetOperationAction {
10481051
string operation = 1;
10491052
}
10501053

1054+
// Query cancellation action defines the long running query and the cancel query
1055+
// format depening on the Cloud database dialect.
1056+
message QueryCancellationAction {
1057+
// Long running query.
1058+
string long_running_sql = 1;
1059+
1060+
// Format of the cancel query for the cloud database dialect.
1061+
string cancel_query = 2;
1062+
}
1063+
10511064
// Action that cancels an operation.
10521065
message CancelOperationAction {
10531066
// The name of the operation resource to be cancelled.

0 commit comments

Comments
 (0)