13 - Testing and publishing your derived column Function
This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.
📖 Task Introduction
We need to test to make sure that the given number of our flight alert objects (as inputs to the function) returns the corresponding departure and arrival delay columns (as output) for that alert.
🔨 Task Instructions
With Code Assist running, open the Functions helper at the bottom of the screen.
Enter the Live Preview tab and select your “DelayCols” function from the lefthand menu.
In the Search . . . field, select 4-5 arbitrary alert objects and click the blue Run ▶ button to test the function.
After a few seconds, a table of results will appear at the bottom of the Functions helper window, mapping your selected flight alerts to a JSON representation of the columns to be created in the table along with their data types (“Double”).
Click the Commit button in the top right of your repository and enter a concise, descriptive message (e.g., add jmeierDelayCols function).
Click Tag version when it becomes visible.
Click the Minor button to semantically increment your published functions and then on the blue Create tag button in the bottom right.
Once your checks finish successfully, move on to the next task. If they fail, review the error messages and adjust your code as instructed. Return to exercise 3 or the “Publish the Function” documentation if you need a refresher on the publishing process.