1 | /* | |
2 | * Copyright OpenSearch Contributors | |
3 | * SPDX-License-Identifier: Apache-2.0 | |
4 | */ | |
5 | ||
6 | ||
7 | package org.opensearch.sql.utils; | |
8 | ||
9 | import java.util.List; | |
10 | import java.util.stream.Collectors; | |
11 | import lombok.experimental.UtilityClass; | |
12 | import org.opensearch.sql.expression.Expression; | |
13 | ||
14 | /** | |
15 | * Utils for {@link Expression}. | |
16 | */ | |
17 | @UtilityClass | |
18 | public class ExpressionUtils { | |
19 | ||
20 | public static String PATH_SEP = "."; | |
21 | ||
22 | /** | |
23 | * Format the list of {@link Expression}. | |
24 | */ | |
25 | public static String format(List<Expression> expressionList) { | |
26 |
1
1. format : replaced return value with "" for org/opensearch/sql/utils/ExpressionUtils::format → KILLED |
return expressionList.stream().map(Expression::toString).collect(Collectors.joining(",")); |
27 | } | |
28 | } | |
Mutations | ||
26 |
1.1 |