0
In Palantir Foundry, I do have a few streaming pipelines that cast numeric IDs to STRING
before using them as primary keys. This was developed by Palantir Engineers.
I am trying to understand if that is a best practice.
Are STRING
PKs generally preferred over INTEGER
in Ontology? If so, Why?
If the source ID is purely numeric, what are the trade-offs of casting to STRING
vs keeping INTEGER
in terms of storage size, index/filter speed, join/shuffle cost, and repeated cast overhead?
Thank you