Skip to content

Commit

Permalink
Update diff
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Kwok <[email protected]>
  • Loading branch information
andy-k-improving committed Jan 28, 2025
1 parent 3d79741 commit c3a9348
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ public OpenSearchFunction(FunctionName functionName, List<Expression> arguments)
@Override
public ExprValue valueOf(Environment<Expression, ExprValue> valueEnv) {
throw new UnsupportedOperationException(
String.format(
"OpenSearch defined function [%s] is only supported in WHERE and HAVING clause.",
functionName));
String.format(
"OpenSearch defined function [%s] is only supported in WHERE and HAVING clause.",
functionName));
}

@Override
Expand All @@ -162,14 +162,14 @@ public ExprType type() {
@Override
public String toString() {
List<String> args =
arguments.stream()
.map(
arg ->
String.format(
"%s=%s",
((NamedArgumentExpression) arg).getArgName(),
((NamedArgumentExpression) arg).getValue().toString()))
.collect(Collectors.toList());
arguments.stream()
.map(
arg ->
String.format(
"%s=%s",
((NamedArgumentExpression) arg).getArgName(),
((NamedArgumentExpression) arg).getValue().toString()))
.collect(Collectors.toList());
return String.format("%s(%s)", functionName, String.join(", ", args));
}
}
Expand Down

0 comments on commit c3a9348

Please sign in to comment.