Add a Custom Column¶
On a container's Explore tab, add a column computed from a Spark SQL expression next to the container's fields. The column is saved with the workspace.
Related
- Concept: Datastore and Container Tabs for how the container tab builds its query.
- Save a Custom Column as a Computed Field to keep the column on the container itself.
Permission Required
Custom columns need the Author team permission or higher on the datastore. Without it, the CUSTOM row does not show. Opening the container's Explore tab needs the Viewer team permission or higher.
Step 1: Open the container and click its Explore tab.
Step 2: In the CUSTOM row, click Add Field . A column such as custom_1 is added and its editor opens.
Step 3: Enter a Name for the column. Use letters, digits, and _, and do not start with a digit.
Step 4: Type a Spark SQL expression in Expression, for example price * 0.9. Suggestions list the container's fields as you type.
Step 5: Click Done.
Step 6: Click Run.
The column shows in the results next to the container's fields.
Remove a custom column
Click the column in the CUSTOM row, then click Remove in its editor.