Skip to content

Commit 5661452

Browse files
Google APIscopybara-github
authored andcommitted
docs: Align session length with public documentation
feat: Expose estimated bytes that a session will scan. Committer: @emkornfield PiperOrigin-RevId: 396849937
1 parent a27fb7a commit 5661452

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ service BigQueryRead {
6262
// limits are enforced based on the number of pre-filtered rows, so some
6363
// filters can lead to lopsided assignments.
6464
//
65-
// Read sessions automatically expire 24 hours after they are created and do
65+
// Read sessions automatically expire 6 hours after they are created and do
6666
// not require manual clean-up by the caller.
6767
rpc CreateReadSession(CreateReadSessionRequest) returns (ReadSession) {
6868
option (google.api.http) = {

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ message ReadSession {
126126
// in that case, the user will need to use a List method to get the streams
127127
// instead, which is not yet available.
128128
repeated ReadStream streams = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
129+
130+
// Output only. An estimate on the number of bytes this session will scan when
131+
// all streams are completely consumed. This estimate is based on
132+
// metadata from the table which might be incomplete or stale.
133+
int64 estimated_total_bytes_scanned = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
129134
}
130135

131136
// Information about a single stream that gets data out of the storage system.

0 commit comments

Comments
 (0)