Sample branch run the same Python transformation you prepared in the production earlier.
In your development branch, go to Transformations, select the transformation
Sample Python transformation and run it.
When the job finishes, go to Storage – Files. You can see that the
demoFile.txt was created but is was not
assigned the tag
demoOutput. It was assigned the tag
1835-demoOutput instead. The prefix
1835 is the ID of
this branch. You can also see the ID in the URL. This is how the development branch files are distinguished from
the files that were created in the production environment.
Now it’s time to make the changes to the transformation and test them. Go to
Sample Python transformation and change the Hello world code in
The transformation will do exactly the same as before, but it will add
Output written to demoFile.txt to
the output log. Save the code block and run the transformation again.
You can see in the job log that it did indeed output the log message.
The file was uploaded to Storage again.
Let’s go back to production to see that by changing the transformation in the development branch, we did not affect the production transformation in any way.
Go to Transformations, open the
Sample Python transformation transformation and check the code block to see that there is still the original version without the log output that we created at the beginning. It was not overwritten by the changes we made in the development
To make sure nothing has changed, run the transformation in production again. When it finishes, go to Storage –
Files. You can see that
demoFile.txt was created. Because it ran in production, it was assigned the
demoOutput without any prefix.
This concludes the file manipulation part of this tutorial. You examined how files behave in branches. You can continue to the next part - examining the changes made in branch.