RDD functions for new variant schema