HIVE-8841: copy cloneToWork for new SparkWork