In the context of developing a Spark ML Pipeline, explain the process of identifying key gotchas and how to handle them. Provide a code snippet demonstrating the development of a Spark ML Pipeline and explain how to address the potential issues that may arise.