@Override public List<Tuple2<MutationType, Dataset<Row>>> planMutationsForSet(Dataset<Row> arriving) { if (setsKeyToUUID()) { arriving = arriving.withColumn(getKeyFieldNames().get(0), functions.lit(UUID.randomUUID().toString())); } if (hasLastUpdatedField()) { arriving = arriving.withColumn(getLastUpdatedFieldName(), functions.lit(currentTimestampString())); } List<Tuple2<MutationType, Dataset<Row>>> planned = Lists.newArrayList(); planned.add(new Tuple2<MutationType, Dataset<Row>>(MutationType.INSERT, arriving)); return planned; }