Removed create_partition method since it does not follow the Spark
design