@@ -58,9 +58,9 @@ type DatasetMetadata struct {
58
58
// More information: https://cloud.google.com/bigquery/docs/reference/standard-sql/collation-concepts
59
59
DefaultCollation string
60
60
61
- // MaxTimeTravelHours represents the number of hours for the max time travel for all tables
61
+ // MaxTimeTravel represents the number of hours for the max time travel for all tables
62
62
// in the dataset. Durations are rounded towards zero for the nearest hourly value.
63
- MaxTimeTravelHours time.Duration
63
+ MaxTimeTravel time.Duration
64
64
65
65
// Storage billing model to be used for all tables in the dataset.
66
66
// Can be set to PHYSICAL. Default is LOGICAL.
@@ -135,9 +135,9 @@ type DatasetMetadataToUpdate struct {
135
135
// created in the dataset.
136
136
DefaultCollation optional.String
137
137
138
- // MaxTimeTravelHours represents the number of hours for the max time travel for all tables
138
+ // MaxTimeTravel represents the number of hours for the max time travel for all tables
139
139
// in the dataset. Durations are rounded towards zero for the nearest hourly value.
140
- MaxTimeTravelHours optional.Duration
140
+ MaxTimeTravel optional.Duration
141
141
142
142
// Storage billing model to be used for all tables in the dataset.
143
143
// Can be set to PHYSICAL. Default is LOGICAL.
@@ -216,7 +216,7 @@ func (dm *DatasetMetadata) toBQ() (*bq.Dataset, error) {
216
216
ds .DefaultTableExpirationMs = int64 (dm .DefaultTableExpiration / time .Millisecond )
217
217
ds .DefaultPartitionExpirationMs = int64 (dm .DefaultPartitionExpiration / time .Millisecond )
218
218
ds .DefaultCollation = dm .DefaultCollation
219
- ds .MaxTimeTravelHours = int64 (dm .MaxTimeTravelHours / time .Hour )
219
+ ds .MaxTimeTravelHours = int64 (dm .MaxTimeTravel / time .Hour )
220
220
ds .StorageBillingModel = string (dm .StorageBillingModel )
221
221
ds .Labels = dm .Labels
222
222
var err error
@@ -304,7 +304,7 @@ func bqToDatasetMetadata(d *bq.Dataset, c *Client) (*DatasetMetadata, error) {
304
304
DefaultTableExpiration : time .Duration (d .DefaultTableExpirationMs ) * time .Millisecond ,
305
305
DefaultPartitionExpiration : time .Duration (d .DefaultPartitionExpirationMs ) * time .Millisecond ,
306
306
DefaultCollation : d .DefaultCollation ,
307
- MaxTimeTravelHours : time .Duration (d .MaxTimeTravelHours ) * time .Hour ,
307
+ MaxTimeTravel : time .Duration (d .MaxTimeTravelHours ) * time .Hour ,
308
308
StorageBillingModel : d .StorageBillingModel ,
309
309
DefaultEncryptionConfig : bqToEncryptionConfig (d .DefaultEncryptionConfiguration ),
310
310
Description : d .Description ,
@@ -395,8 +395,8 @@ func (dm *DatasetMetadataToUpdate) toBQ() (*bq.Dataset, error) {
395
395
ds .DefaultCollation = optional .ToString (dm .DefaultCollation )
396
396
forceSend ("DefaultCollation" )
397
397
}
398
- if dm .MaxTimeTravelHours != nil {
399
- dur := optional .ToDuration (dm .MaxTimeTravelHours )
398
+ if dm .MaxTimeTravel != nil {
399
+ dur := optional .ToDuration (dm .MaxTimeTravel )
400
400
if dur == 0 {
401
401
// Send a null to delete the field.
402
402
ds .NullFields = append (ds .NullFields , "MaxTimeTravelHours" )
0 commit comments