This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.
How do we repair the registered table and index?
When a destructive change to a backing dataset is made involving a column removal or type change, you'll need to remove the property from the mapping and update the Phonograph table registration, which will initiate a reindex of the new table. Put succinctly, the corrective workflow is:
⚠️ WARNING: "Destructive" schema changes to your backing datasets may cause you to lose edits made through Actions (or otherwise). To avoid data loss, consult the recommended reading at the bottom of this task.
In OMA, proceed to the property mapping interface for your flight alert object type.
Delete the rule_name
property from the right side of the mapping.
Save your Ontology.
Return to your object type and click into the Datasources menu item on the left-hand panel.
Scroll down to the Phonograph section and click the Update button. This refreshes the Phonograph table with the new backing dataset schema.
Although we will not step through an example here, note that if the destructive change is a type change in a backing dataset column (for example, timestamp to date), the process is slightly different. In that case you would:
Update the Base Format for that property from the Properties menu (the image below shows the updating to a date
type).
Save your Ontology.
Update your table registration.
There's more to explore around the notion of backing dataset changes, especially when they are on columns that have received edits through the writeback process previously discussed. To learn more, review this documentation entry on breaking changes.