Skip to content

Commit b49a983

Browse files
Google APIscopybara-github
authored andcommitted
feat: add experimental ArrowData type and arrow_data field within AppendRowsRequest
PiperOrigin-RevId: 684900949
1 parent de509e3 commit b49a983

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

google/cloud/bigquery/storage/v1/storage.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,17 @@ message CreateWriteStreamRequest {
422422
// The size of a single AppendRowsRequest must be less than 10 MB in size.
423423
// Requests larger than this return an error, typically `INVALID_ARGUMENT`.
424424
message AppendRowsRequest {
425+
// Arrow schema and data.
426+
// Arrow format is an experimental feature only selected for allowlisted
427+
// customers.
428+
message ArrowData {
429+
// Optional. Arrow Schema used to serialize the data.
430+
ArrowSchema writer_schema = 1;
431+
432+
// Required. Serialized row data in Arrow format.
433+
ArrowRecordBatch rows = 2;
434+
}
435+
425436
// ProtoData contains the data rows and schema when constructing append
426437
// requests.
427438
message ProtoData {
@@ -510,6 +521,10 @@ message AppendRowsRequest {
510521
oneof rows {
511522
// Rows in proto format.
512523
ProtoData proto_rows = 4;
524+
525+
// Rows in arrow format. This is an experimental feature only selected for
526+
// allowlisted customers.
527+
ArrowData arrow_rows = 5;
513528
}
514529

515530
// Id set by client to annotate its identity. Only initial request setting is

0 commit comments

Comments
 (0)