Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
eolivelli committed Dec 14, 2023
1 parent ff7bbe7 commit 9434c9d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package com.datastax.oss.streaming.ai.model;

import ai.langstream.ai.agents.commons.jstl.JstlEvaluator;
import jakarta.el.ELException;
import java.math.BigDecimal;
import java.sql.Time;
import java.sql.Timestamp;
Expand Down Expand Up @@ -87,8 +88,8 @@ public ComputeField build() {
this.validateAndParseScopedName();
this.evaluator =
new JstlEvaluator<>(String.format("${%s}", this.expression), getJavaType());
} catch (Throwable ex) {
throw new IllegalArgumentException("invalid expression: " + "expression", ex);
} catch (ELException ex) {
throw new IllegalArgumentException("invalid expression: " + expression, ex);
}
return new ComputeField(name, evaluator, type, scope, optional);
}
Expand Down

0 comments on commit 9434c9d

Please sign in to comment.