Jaideep C
01/08/2025, 11:30 AMSince the metadata TTL is applied on the first comparison column, the time unit of upsert TTL is the same as the first comparison column.
Here is my upsert config
"upsertConfig": {
"enablePreload": true,
"dropOutOfOrderRecord": false,
"mode": "FULL",
"comparisonColumns": [
"Last_Replication_Date"
],
"hashFunction": "MURMUR3",
"defaultPartialUpsertStrategy": "OVERWRITE",
"enableSnapshot": true,
"metadataTTL": 5184000000,
"deletedKeysTTL": 0
},
Here is my scema
{
"name": "Last_Replication_Date",
"dataType": "LONG",
"notNull": false,
"format": "1:MILLISECONDS:EPOCH",
"granularity": "1:MILLISECONDS"
}
I have couple of questions
1. As you can see my Last_Replication_Date column is nullable for many old records, how does that effect metadataTTL ?
2. Does setting dropOutOfOrderRecord:true have negative impact on memory consumtion?Mayank
Jaideep C
01/09/2025, 8:49 AM-9223372036854775808 and my metadataTTL is 5184000000 so by logic default value + metadataTTL should expire immediately right?
If not for this default value do you suggest anything else?
@Mayank @Xiang FuXiang Fu
now() if it’s null?Jaideep C
01/09/2025, 10:29 AMnow() will not expire the metadata TTL right?
so the problem is I am running out of heap memory.Xiang Fu
ts_comp, in the ingestion config, configure it to be if null then now() else keep itself.
Then pinot will use ingestion time for timestamp comparisonXiang Fu
Xiang Fu
Jaideep C
01/09/2025, 10:34 AMLast_Replication_Date is null they wont have any updates so I dont want them to be in upsert metadata.
So setting it to very old date will do it right?Xiang Fu
Xiang Fu
Jaideep C
01/09/2025, 10:41 AMXiang Fu
Xiang Fu