Skip to content

Commit 0ca0dc6

Browse files
committed
remove some verbose comments and fix some style
Signed-off-by: Jialiang Liang <jiallian@amazon.com>
1 parent 570681d commit 0ca0dc6

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

core/src/main/java/org/opensearch/sql/expression/parse/RegexExpression.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public RegexExpression(Expression sourceField, Expression pattern, Expression id
3838

3939
@Override
4040
ExprValue parseValue(ExprValue value) throws ExpressionEvaluationException {
41-
// Use stringValue() which will throw exception for non-string types
4241
String rawString = value.stringValue();
4342

4443
// Extract the specific named group
@@ -47,7 +46,6 @@ ExprValue parseValue(ExprValue value) throws ExpressionEvaluationException {
4746
if (extracted != null) {
4847
return new ExprStringValue(extracted);
4948
}
50-
5149
log.debug("failed to extract pattern {} from input ***", regexPattern.pattern());
5250
return new ExprStringValue("");
5351
}

0 commit comments

Comments
 (0)