ESQL: standardize writeTo method across Functions #118037
Labels
:Analytics/ES|QL
AKA ESQL
>enhancement
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
The vast majority of ESQL functions follow the same pattern, accepting one or two fields and thus end up with the same writeTo method:
Yet because the method is not already implemented, a lot of functions end up implementing this method, causing small variants.
This was partially addressed in
AggregateFunction
however the approach should be generalized to allFunction
s by:a. implementing a default final writeTo method
b. (optionally) provide an empty
extraWriteTo
method (or similar) to allow extra payload to be written - though we'd have to identify a case for this first.The text was updated successfully, but these errors were encountered: