Hi team, I am new to pinot, I am try to have day w...
# troubleshooting
k
Hi team, I am new to pinot, I am try to have day wise partition on epoch in seconds field. Can someone please guide me how I can achieve this, Sample { "schemaName": "TEST_PARTITION", "primaryKeyColumns": [ "ID", "TIMESTAMP", "USER_NAME", "TYPE" ], "dimensionFieldSpecs": [ { "name": "ID", "dataType": "INT" }, { "name": "USER_NAME", "dataType": "STRING" }, { "name": "TYPE", "dataType": "INT" } ], "dateTimeFieldSpecs": [ { "name": "TIMESTAMP", "dataType": "LONG", "notNull": false, "format": "1SECONDSEPOCH", "granularity": "1:SECONDS" } ] }
x
If you are using upset, then data is partitioned based on the primary keys
k
yes I am using FULL upsert. There is no way to have partition on TIMESTAMP is it ?
x
How do you deal with the primary keys?
If your data is already partitioned by all those keys then you are already partitioned by timestamp
k
Thank you. I have use case where timestamp is not part of primary key and need full upsert support. In that case can you please guide me how can we proceed ?
x
What’s your use case here? Then I would say just partition upstream data use
ID
. And you can configure upsert based on the Primary keys you want. For upsert table if you partition data by date, then old days will have way less data comparing to new days right?
k
yes, Thanks Xiang Fu