Description
Custom code enables a user to write and run their own SQL code in order to transform a tabular dataset.Advanced functionality, not recommended for inexperienced usersThis complex feature requires advanced knowledge of SQL code. For assistance, contact our Customer Success team or visit our Support Portal. Also consider using other manipulator steps in combination to achieve your intended result.
Application
Even though the platform offers numerous functions to transform tables, users may want to transform their data in a way so specific that no general solution is available. This function will allow such users to manipulate the data with total freedom and flexibility. The function can be used for example to manually modify the values of the table, restructure the table, to create new columns in a complex way.How to use
Knowledge of SQL code is required for this step.
- Select the dataset on which you want to apply the code.
- Write the code in the code section.
- Each snippet of code must contain FROM {dataset_1} in a single line, to reference the selected dataset
- The code block cannot end with a semi-colon
- Add a description to your code that will be visible from the notebook (e.g. “data filtered in my specific way”). If no description is added, the step will just print the custom code. Especially if the code becomes longer it is highly recommended to add a description instead.
- Enable Save output under a different name if the step should not overwrite the initial dataset. If this option is not enabled the dataset will be overwritten.
Note: We’ve created custom GPTs to auto-generate SQL queries to help you use this manipulator (requires a Pro OpenAI Plan):
- If you have an Amazon AWS installation (using Athena SQL): link here
- If you have a Microsoft Azure installation (using Synapse): link here