diff --git a/core/src/main/java/org/opensearch/sql/expression/span/SpanExpression.java b/core/src/main/java/org/opensearch/sql/expression/span/SpanExpression.java index 3c5a2dc14f..aff114145e 100644 --- a/core/src/main/java/org/opensearch/sql/expression/span/SpanExpression.java +++ b/core/src/main/java/org/opensearch/sql/expression/span/SpanExpression.java @@ -24,12 +24,6 @@ public class SpanExpression implements Expression { private final Expression value; private final SpanUnit unit; - /** - * Rounding that generates span starting point. - */ - @ToString.Exclude - private final Rounding rounding; - /** * Construct a span expression by field and span interval expression. */ @@ -37,11 +31,11 @@ public SpanExpression(Expression field, Expression value, SpanUnit unit) { this.field = field; this.value = value; this.unit = unit; - this.rounding = Rounding.createRounding(this); // TODO: will integrate with WindowAssigner } @Override public ExprValue valueOf(Environment valueEnv) { + Rounding rounding = Rounding.createRounding(this); //TODO: will integrate with WindowAssigner return rounding.round(field.valueOf(valueEnv)); }