[SPARK] Upgrade to 1.2 while maintaining bwc with 1.1 & 1.0

Fix #347