Skip to content

Commit 727f08b

Browse files
Google APIscopybara-github
authored andcommitted
feat: Deprecate format specific row_count field in Read API
PiperOrigin-RevId: 438434001
1 parent c59f02e commit 727f08b

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -39,8 +39,9 @@ message ArrowRecordBatch {
3939
// IPC-serialized Arrow RecordBatch.
4040
bytes serialized_record_batch = 1;
4141

42-
// The count of rows in `serialized_record_batch`.
43-
int64 row_count = 2;
42+
// [Deprecated] The count of rows in `serialized_record_batch`.
43+
// Please use the format-independent ReadRowsResponse.row_count instead.
44+
int64 row_count = 2 [deprecated = true];
4445
}
4546

4647
// Contains options specific to Arrow Serialization.

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -35,6 +35,7 @@ message AvroRows {
3535
// Binary serialized rows in a block.
3636
bytes serialized_binary_rows = 1;
3737

38-
// The count of rows in the returning block.
39-
int64 row_count = 2;
38+
// [Deprecated] The count of rows in the returning block.
39+
// Please use the format-independent ReadRowsResponse.row_count instead.
40+
int64 row_count = 2 [deprecated = true];
4041
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)