To execute this recipe, you need to have a working Spark 2.3 environment. You should have gone through the previous recipe, Specifying schema programmatically, as we will be using the sample_data_schema DataFrame we created there.
There are no other requirements.