Skip to content

Commit db4a1f3

Browse files
authored
Merge pull request #170 from azaurus1/fix-upsert-ttl-field
Fix upsert ttl field
2 parents 6f3547f + 568a6e5 commit db4a1f3

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":0.0,
406+
"metadataTTL":84600,
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,11 +120,11 @@ 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"`
123124
DeletedKeysTTL float64 `json:"deletedKeysTTL,omitempty"`
124125
HashFunction string `json:"hashFunction,omitempty"`
125126
EnableSnapshot *bool `json:"enableSnapshot,omitempty"`
126127
EnablePreLoad *bool `json:"enablePreLoad,omitempty"`
127-
UpsertTTL string `json:"upsertTTL,omitempty"`
128128
DropOutOfOrderRecord *bool `json:"dropOutOfOrderRecord,omitempty"`
129129
OutOfOrderRecordColumn string `json:"outOfOrderRecordColumn,omitempty"`
130130
MetadataManagerClass string `json:"metadataManagerClass,omitempty"`

0 commit comments

Comments
 (0)