Skip to content

Commit e9d3dec

Browse files
committed
Change Table UpsertConfig MetadataTTL to float64
1 parent a7d1a23 commit e9d3dec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

go-pinot-api_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ func handleGetTableConfig(w http.ResponseWriter, r *http.Request) {
403403
"dropOutOfOrderRecord":false,
404404
"hashFunction":"NONE",
405405
"defaultPartialUpsertStrategy":"OVERWRITE",
406-
"metadataTTL":84600,
406+
"metadataTTL":84600.0,
407407
"deletedKeysTTL":0.0,
408408
"enablePreload":false,
409409
"enableSnapshot":true

model/Table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ type UpsertConfig struct {
120120
DefaultPartialUpsertStrategy string `json:"defaultPartialUpsertStrategy,omitempty"`
121121
ComparisonColumns string `json:"comparisonColumn,omitempty"`
122122
DeleteRecordColumn string `json:"deleteRecordColumn,omitempty"`
123-
MetadataTTL int64 `json:"metadataTTL,omitempty"`
123+
MetadataTTL float64 `json:"metadataTTL,omitempty"`
124124
DeletedKeysTTL float64 `json:"deletedKeysTTL,omitempty"`
125125
HashFunction string `json:"hashFunction,omitempty"`
126126
EnableSnapshot *bool `json:"enableSnapshot,omitempty"`

0 commit comments

Comments
 (0)