Skip to content

Commit

Permalink
QL: Replace field type (#93528)
Browse files Browse the repository at this point in the history
Adds a method to replace the field type on a field.
  • Loading branch information
nik9000 authored Feb 6, 2023
1 parent 438f2f8 commit ae48bb0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ public DataType getDataType() {
return esDataType;
}

/**
* Create a new {@link EsField} replacing the type.
*/
public EsField withType(DataType esDataType) {
return new EsField(name, esDataType, properties, aggregatable, isAlias);
}

/**
* This field can be aggregated
*/
Expand Down

0 comments on commit ae48bb0

Please sign in to comment.