implemented insert-by-query plan

Is it possible to return BytesReference or something specific here?