Upgrade Spark API.