copy

fun copy(field: QueryField<*> = this.field, alias: String = this.alias, orderBy: QueryField<*>? = this.orderBy, filter: FilterExpression = this.filter): AggregationMetric.Last

This Last with the given values replaced; for Wow's own query rewriting.