1
|
|
/* |
2
|
|
* Copyright OpenSearch Contributors |
3
|
|
* SPDX-License-Identifier: Apache-2.0 |
4
|
|
*/ |
5
|
|
|
6
|
|
|
7
|
|
package org.opensearch.sql.data.model; |
8
|
|
|
9
|
|
import java.time.temporal.TemporalAmount; |
10
|
|
import java.util.ArrayList; |
11
|
|
import java.util.LinkedHashMap; |
12
|
|
import java.util.List; |
13
|
|
import java.util.Map; |
14
|
|
import lombok.experimental.UtilityClass; |
15
|
|
import org.opensearch.sql.data.type.ExprCoreType; |
16
|
|
import org.opensearch.sql.exception.ExpressionEvaluationException; |
17
|
|
|
18
|
|
/** |
19
|
|
* The definition of {@link ExprValue} factory. |
20
|
|
*/ |
21
|
|
@UtilityClass |
22
|
|
public class ExprValueUtils { |
23
|
|
public static final ExprValue LITERAL_TRUE = ExprBooleanValue.of(true); |
24
|
|
public static final ExprValue LITERAL_FALSE = ExprBooleanValue.of(false); |
25
|
|
public static final ExprValue LITERAL_NULL = ExprNullValue.of(); |
26
|
|
public static final ExprValue LITERAL_MISSING = ExprMissingValue.of(); |
27
|
|
|
28
|
|
public static ExprValue booleanValue(Boolean value) { |
29
|
2
1. booleanValue : negated conditional → KILLED
2. booleanValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::booleanValue → KILLED
|
return value ? LITERAL_TRUE : LITERAL_FALSE; |
30
|
|
} |
31
|
|
|
32
|
|
public static ExprValue byteValue(Byte value) { |
33
|
1
1. byteValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::byteValue → KILLED
|
return new ExprByteValue(value); |
34
|
|
} |
35
|
|
|
36
|
|
public static ExprValue shortValue(Short value) { |
37
|
1
1. shortValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::shortValue → SURVIVED
|
return new ExprShortValue(value); |
38
|
|
} |
39
|
|
|
40
|
|
public static ExprValue integerValue(Integer value) { |
41
|
1
1. integerValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::integerValue → KILLED
|
return new ExprIntegerValue(value); |
42
|
|
} |
43
|
|
|
44
|
|
public static ExprValue doubleValue(Double value) { |
45
|
1
1. doubleValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::doubleValue → KILLED
|
return new ExprDoubleValue(value); |
46
|
|
} |
47
|
|
|
48
|
|
public static ExprValue floatValue(Float value) { |
49
|
1
1. floatValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::floatValue → KILLED
|
return new ExprFloatValue(value); |
50
|
|
} |
51
|
|
|
52
|
|
public static ExprValue longValue(Long value) { |
53
|
1
1. longValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::longValue → KILLED
|
return new ExprLongValue(value); |
54
|
|
} |
55
|
|
|
56
|
|
public static ExprValue stringValue(String value) { |
57
|
1
1. stringValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::stringValue → KILLED
|
return new ExprStringValue(value); |
58
|
|
} |
59
|
|
|
60
|
|
public static ExprValue intervalValue(TemporalAmount value) { |
61
|
1
1. intervalValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::intervalValue → KILLED
|
return new ExprIntervalValue(value); |
62
|
|
} |
63
|
|
|
64
|
|
/** |
65
|
|
* {@link ExprTupleValue} constructor. |
66
|
|
*/ |
67
|
|
public static ExprValue tupleValue(Map<String, Object> map) { |
68
|
|
LinkedHashMap<String, ExprValue> valueMap = new LinkedHashMap<>(); |
69
|
1
1. tupleValue : removed call to java/util/Map::forEach → KILLED
|
map.forEach((k, v) -> valueMap |
70
|
1
1. lambda$tupleValue$0 : negated conditional → KILLED
|
.put(k, v instanceof ExprValue ? (ExprValue) v : fromObjectValue(v))); |
71
|
1
1. tupleValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::tupleValue → KILLED
|
return new ExprTupleValue(valueMap); |
72
|
|
} |
73
|
|
|
74
|
|
/** |
75
|
|
* {@link ExprCollectionValue} constructor. |
76
|
|
*/ |
77
|
|
public static ExprValue collectionValue(List<Object> list) { |
78
|
|
List<ExprValue> valueList = new ArrayList<>(); |
79
|
1
1. collectionValue : removed call to java/util/List::forEach → KILLED
|
list.forEach(o -> valueList.add(fromObjectValue(o))); |
80
|
1
1. collectionValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::collectionValue → KILLED
|
return new ExprCollectionValue(valueList); |
81
|
|
} |
82
|
|
|
83
|
|
public static ExprValue missingValue() { |
84
|
1
1. missingValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::missingValue → KILLED
|
return ExprMissingValue.of(); |
85
|
|
} |
86
|
|
|
87
|
|
public static ExprValue nullValue() { |
88
|
1
1. nullValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::nullValue → KILLED
|
return ExprNullValue.of(); |
89
|
|
} |
90
|
|
|
91
|
|
/** |
92
|
|
* Construct ExprValue from Object. |
93
|
|
*/ |
94
|
|
public static ExprValue fromObjectValue(Object o) { |
95
|
1
1. fromObjectValue : negated conditional → KILLED
|
if (null == o) { |
96
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
return LITERAL_NULL; |
97
|
|
} |
98
|
1
1. fromObjectValue : negated conditional → KILLED
|
if (o instanceof Map) { |
99
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → SURVIVED
|
return tupleValue((Map) o); |
100
|
1
1. fromObjectValue : negated conditional → KILLED
|
} else if (o instanceof List) { |
101
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → SURVIVED
|
return collectionValue(((List) o)); |
102
|
1
1. fromObjectValue : negated conditional → KILLED
|
} else if (o instanceof Byte) { |
103
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
return byteValue((Byte) o); |
104
|
1
1. fromObjectValue : negated conditional → KILLED
|
} else if (o instanceof Short) { |
105
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → SURVIVED
|
return shortValue((Short) o); |
106
|
1
1. fromObjectValue : negated conditional → KILLED
|
} else if (o instanceof Integer) { |
107
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
return integerValue((Integer) o); |
108
|
1
1. fromObjectValue : negated conditional → KILLED
|
} else if (o instanceof Long) { |
109
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
return longValue(((Long) o)); |
110
|
1
1. fromObjectValue : negated conditional → KILLED
|
} else if (o instanceof Boolean) { |
111
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
return booleanValue((Boolean) o); |
112
|
1
1. fromObjectValue : negated conditional → KILLED
|
} else if (o instanceof Double) { |
113
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
return doubleValue((Double) o); |
114
|
1
1. fromObjectValue : negated conditional → KILLED
|
} else if (o instanceof String) { |
115
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
return stringValue((String) o); |
116
|
1
1. fromObjectValue : negated conditional → KILLED
|
} else if (o instanceof Float) { |
117
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
return floatValue((Float) o); |
118
|
|
} else { |
119
|
|
throw new ExpressionEvaluationException("unsupported object " + o.getClass()); |
120
|
|
} |
121
|
|
} |
122
|
|
|
123
|
|
/** |
124
|
|
* Construct ExprValue from Object with ExprCoreType. |
125
|
|
*/ |
126
|
|
public static ExprValue fromObjectValue(Object o, ExprCoreType type) { |
127
|
|
switch (type) { |
128
|
|
case TIMESTAMP: |
129
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
return new ExprTimestampValue((String)o); |
130
|
|
case DATE: |
131
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
return new ExprDateValue((String)o); |
132
|
|
case TIME: |
133
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
return new ExprTimeValue((String)o); |
134
|
|
case DATETIME: |
135
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
return new ExprDatetimeValue((String)o); |
136
|
|
default: |
137
|
1
1. fromObjectValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
return fromObjectValue(o); |
138
|
|
} |
139
|
|
} |
140
|
|
|
141
|
|
public static Byte getByteValue(ExprValue exprValue) { |
142
|
1
1. getByteValue : replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::getByteValue → KILLED
|
return exprValue.byteValue(); |
143
|
|
} |
144
|
|
|
145
|
|
public static Short getShortValue(ExprValue exprValue) { |
146
|
1
1. getShortValue : replaced Short return value with 0 for org/opensearch/sql/data/model/ExprValueUtils::getShortValue → KILLED
|
return exprValue.shortValue(); |
147
|
|
} |
148
|
|
|
149
|
|
public static Integer getIntegerValue(ExprValue exprValue) { |
150
|
1
1. getIntegerValue : replaced Integer return value with 0 for org/opensearch/sql/data/model/ExprValueUtils::getIntegerValue → KILLED
|
return exprValue.integerValue(); |
151
|
|
} |
152
|
|
|
153
|
|
public static Double getDoubleValue(ExprValue exprValue) { |
154
|
1
1. getDoubleValue : replaced Double return value with 0 for org/opensearch/sql/data/model/ExprValueUtils::getDoubleValue → KILLED
|
return exprValue.doubleValue(); |
155
|
|
} |
156
|
|
|
157
|
|
public static Long getLongValue(ExprValue exprValue) { |
158
|
1
1. getLongValue : replaced Long return value with 0L for org/opensearch/sql/data/model/ExprValueUtils::getLongValue → KILLED
|
return exprValue.longValue(); |
159
|
|
} |
160
|
|
|
161
|
|
public static Float getFloatValue(ExprValue exprValue) { |
162
|
1
1. getFloatValue : replaced Float return value with 0 for org/opensearch/sql/data/model/ExprValueUtils::getFloatValue → KILLED
|
return exprValue.floatValue(); |
163
|
|
} |
164
|
|
|
165
|
|
public static String getStringValue(ExprValue exprValue) { |
166
|
1
1. getStringValue : replaced return value with "" for org/opensearch/sql/data/model/ExprValueUtils::getStringValue → KILLED
|
return exprValue.stringValue(); |
167
|
|
} |
168
|
|
|
169
|
|
public static List<ExprValue> getCollectionValue(ExprValue exprValue) { |
170
|
1
1. getCollectionValue : replaced return value with Collections.emptyList for org/opensearch/sql/data/model/ExprValueUtils::getCollectionValue → KILLED
|
return exprValue.collectionValue(); |
171
|
|
} |
172
|
|
|
173
|
|
public static Map<String, ExprValue> getTupleValue(ExprValue exprValue) { |
174
|
1
1. getTupleValue : replaced return value with Collections.emptyMap for org/opensearch/sql/data/model/ExprValueUtils::getTupleValue → KILLED
|
return exprValue.tupleValue(); |
175
|
|
} |
176
|
|
|
177
|
|
public static Boolean getBooleanValue(ExprValue exprValue) { |
178
|
2
1. getBooleanValue : replaced Boolean return with False for org/opensearch/sql/data/model/ExprValueUtils::getBooleanValue → KILLED
2. getBooleanValue : replaced Boolean return with True for org/opensearch/sql/data/model/ExprValueUtils::getBooleanValue → KILLED
|
return exprValue.booleanValue(); |
179
|
|
} |
180
|
|
} |
| | Mutations |
29 |
|
1.1 Location : booleanValue Killed by : org.opensearch.sql.expression.conditional.cases.WhenClauseTest.[engine:junit-jupiter]/[class:org.opensearch.sql.expression.conditional.cases.WhenClauseTest]/[method:should_match_and_return_result_if_condition_is_true()] negated conditional → KILLED 2.2 Location : booleanValue Killed by : org.opensearch.sql.data.model.ExprBooleanValueTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprBooleanValueTest]/[method:comparabilityTest()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::booleanValue → KILLED
|
33 |
|
1.1 Location : byteValue Killed by : org.opensearch.sql.data.utils.ExprValueOrderingTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.utils.ExprValueOrderingTest]/[method:natural_order_byte_value()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::byteValue → KILLED
|
37 |
|
1.1 Location : shortValue Killed by : none replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::shortValue → SURVIVED
|
41 |
|
1.1 Location : integerValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[test-template:getValue(org.opensearch.sql.data.model.ExprValue, java.util.function.Function, java.lang.Object)] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::integerValue → KILLED
|
45 |
|
1.1 Location : doubleValue Killed by : org.opensearch.sql.data.utils.ExprValueOrderingTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.utils.ExprValueOrderingTest]/[method:order_compare_value_with_compatible_number_type()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::doubleValue → KILLED
|
49 |
|
1.1 Location : floatValue Killed by : org.opensearch.sql.data.utils.ExprValueOrderingTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.utils.ExprValueOrderingTest]/[method:natural_order_float_value()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::floatValue → KILLED
|
53 |
|
1.1 Location : longValue Killed by : org.opensearch.sql.data.utils.ExprValueOrderingTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.utils.ExprValueOrderingTest]/[method:natural_order_long_value()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::longValue → KILLED
|
57 |
|
1.1 Location : stringValue Killed by : org.opensearch.sql.expression.NamedArgumentExpressionTest.[engine:junit-jupiter]/[class:org.opensearch.sql.expression.NamedArgumentExpressionTest]/[method:name_an_argument()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::stringValue → KILLED
|
61 |
|
1.1 Location : intervalValue Killed by : org.opensearch.sql.data.model.ExprIntervalValueTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprIntervalValueTest]/[method:equals_to_self()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::intervalValue → KILLED
|
69 |
|
1.1 Location : tupleValue Killed by : org.opensearch.sql.storage.bindingtuple.BindingTupleTest.[engine:junit-jupiter]/[class:org.opensearch.sql.storage.bindingtuple.BindingTupleTest]/[method:resolve_ref_expression()] removed call to java/util/Map::forEach → KILLED
|
70 |
|
1.1 Location : lambda$tupleValue$0 Killed by : org.opensearch.sql.data.model.ExprTupleValueTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprTupleValueTest]/[method:equal_to_itself()] negated conditional → KILLED
|
71 |
|
1.1 Location : tupleValue Killed by : org.opensearch.sql.data.model.ExprTupleValueTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprTupleValueTest]/[method:equal_to_itself()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::tupleValue → KILLED
|
79 |
|
1.1 Location : collectionValue Killed by : org.opensearch.sql.data.model.ExprCollectionValueTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprCollectionValueTest]/[method:compare_collection_with_different_size()] removed call to java/util/List::forEach → KILLED
|
80 |
|
1.1 Location : collectionValue Killed by : org.opensearch.sql.data.model.ExprCollectionValueTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprCollectionValueTest]/[method:equal_to_itself()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::collectionValue → KILLED
|
84 |
|
1.1 Location : missingValue Killed by : org.opensearch.sql.expression.conditional.cases.WhenClauseTest.[engine:junit-jupiter]/[class:org.opensearch.sql.expression.conditional.cases.WhenClauseTest]/[method:should_not_match_if_condition_evaluated_to_missing()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::missingValue → KILLED
|
88 |
|
1.1 Location : nullValue Killed by : org.opensearch.sql.expression.conditional.cases.WhenClauseTest.[engine:junit-jupiter]/[class:org.opensearch.sql.expression.conditional.cases.WhenClauseTest]/[method:should_not_match_if_condition_evaluated_to_null()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::nullValue → KILLED
|
95 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:unSupportedObject()] negated conditional → KILLED
|
96 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.planner.physical.DedupeOperatorTest.[engine:junit-jupiter]/[class:org.opensearch.sql.planner.physical.DedupeOperatorTest]/[method:dedupe_one_field_with_null_value()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
98 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:unSupportedObject()] negated conditional → KILLED
|
99 |
|
1.1 Location : fromObjectValue Killed by : none replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → SURVIVED
|
100 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:unSupportedObject()] negated conditional → KILLED
|
101 |
|
1.1 Location : fromObjectValue Killed by : none replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → SURVIVED
|
102 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:unSupportedObject()] negated conditional → KILLED
|
103 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.expression.operator.predicate.BinaryPredicateOperatorTest.[engine:junit-jupiter]/[class:org.opensearch.sql.expression.operator.predicate.BinaryPredicateOperatorTest]/[test-template:test_notequal(org.opensearch.sql.data.model.ExprValue, org.opensearch.sql.data.model.ExprValue)]/[test-template-invocation:#11] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
104 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:unSupportedObject()] negated conditional → KILLED
|
105 |
|
1.1 Location : fromObjectValue Killed by : none replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → SURVIVED
|
106 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:unSupportedObject()] negated conditional → KILLED
|
107 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprCollectionValueTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprCollectionValueTest]/[method:compare_collection_with_different_size()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
108 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:unSupportedObject()] negated conditional → KILLED
|
109 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.analysis.ExpressionAnalyzerTest.[engine:junit-jupiter]/[class:org.opensearch.sql.analysis.ExpressionAnalyzerTest]/[method:interval()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
110 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:unSupportedObject()] negated conditional → KILLED
|
111 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.analysis.ExpressionAnalyzerTest.[engine:junit-jupiter]/[class:org.opensearch.sql.analysis.ExpressionAnalyzerTest]/[method:xor()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
112 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:unSupportedObject()] negated conditional → KILLED
|
113 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.planner.physical.AggregationOperatorTest.[engine:junit-jupiter]/[class:org.opensearch.sql.planner.physical.AggregationOperatorTest]/[method:sum_without_groups()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
114 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:unSupportedObject()] negated conditional → KILLED
|
115 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.storage.bindingtuple.BindingTupleTest.[engine:junit-jupiter]/[class:org.opensearch.sql.storage.bindingtuple.BindingTupleTest]/[method:resolve_ref_expression()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
116 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:unSupportedObject()] negated conditional → KILLED
|
117 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.analysis.ExpressionAnalyzerTest.[engine:junit-jupiter]/[class:org.opensearch.sql.analysis.ExpressionAnalyzerTest]/[method:multi_match_expression()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
129 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:constructDateAndTimeValue()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
131 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:constructDateAndTimeValue()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
133 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:constructDateAndTimeValue()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
135 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[method:constructDateAndTimeValue()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
137 |
|
1.1 Location : fromObjectValue Killed by : org.opensearch.sql.analysis.NamedExpressionAnalyzerTest.[engine:junit-jupiter]/[class:org.opensearch.sql.analysis.NamedExpressionAnalyzerTest]/[method:visit_highlight()] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::fromObjectValue → KILLED
|
142 |
|
1.1 Location : getByteValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[test-template:getValue(org.opensearch.sql.data.model.ExprValue, java.util.function.Function, java.lang.Object)]/[test-template-invocation:#1] replaced return value with null for org/opensearch/sql/data/model/ExprValueUtils::getByteValue → KILLED
|
146 |
|
1.1 Location : getShortValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[test-template:getValue(org.opensearch.sql.data.model.ExprValue, java.util.function.Function, java.lang.Object)]/[test-template-invocation:#2] replaced Short return value with 0 for org/opensearch/sql/data/model/ExprValueUtils::getShortValue → KILLED
|
150 |
|
1.1 Location : getIntegerValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[test-template:getValue(org.opensearch.sql.data.model.ExprValue, java.util.function.Function, java.lang.Object)]/[test-template-invocation:#3] replaced Integer return value with 0 for org/opensearch/sql/data/model/ExprValueUtils::getIntegerValue → KILLED
|
154 |
|
1.1 Location : getDoubleValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[test-template:getValue(org.opensearch.sql.data.model.ExprValue, java.util.function.Function, java.lang.Object)]/[test-template-invocation:#6] replaced Double return value with 0 for org/opensearch/sql/data/model/ExprValueUtils::getDoubleValue → KILLED
|
158 |
|
1.1 Location : getLongValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[test-template:getValue(org.opensearch.sql.data.model.ExprValue, java.util.function.Function, java.lang.Object)]/[test-template-invocation:#4] replaced Long return value with 0L for org/opensearch/sql/data/model/ExprValueUtils::getLongValue → KILLED
|
162 |
|
1.1 Location : getFloatValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[test-template:getValue(org.opensearch.sql.data.model.ExprValue, java.util.function.Function, java.lang.Object)]/[test-template-invocation:#5] replaced Float return value with 0 for org/opensearch/sql/data/model/ExprValueUtils::getFloatValue → KILLED
|
166 |
|
1.1 Location : getStringValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[test-template:getValue(org.opensearch.sql.data.model.ExprValue, java.util.function.Function, java.lang.Object)]/[test-template-invocation:#7] replaced return value with "" for org/opensearch/sql/data/model/ExprValueUtils::getStringValue → KILLED
|
170 |
|
1.1 Location : getCollectionValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[test-template:getValue(org.opensearch.sql.data.model.ExprValue, java.util.function.Function, java.lang.Object)]/[test-template-invocation:#9] replaced return value with Collections.emptyList for org/opensearch/sql/data/model/ExprValueUtils::getCollectionValue → KILLED
|
174 |
|
1.1 Location : getTupleValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[test-template:getValue(org.opensearch.sql.data.model.ExprValue, java.util.function.Function, java.lang.Object)]/[test-template-invocation:#10] replaced return value with Collections.emptyMap for org/opensearch/sql/data/model/ExprValueUtils::getTupleValue → KILLED
|
178 |
|
1.1 Location : getBooleanValue Killed by : org.opensearch.sql.data.model.ExprValueUtilsTest.[engine:junit-jupiter]/[class:org.opensearch.sql.data.model.ExprValueUtilsTest]/[test-template:getValue(org.opensearch.sql.data.model.ExprValue, java.util.function.Function, java.lang.Object)]/[test-template-invocation:#8] replaced Boolean return with False for org/opensearch/sql/data/model/ExprValueUtils::getBooleanValue → KILLED 2.2 Location : getBooleanValue Killed by : org.opensearch.sql.expression.operator.predicate.BinaryPredicateOperatorTest.[engine:junit-jupiter]/[class:org.opensearch.sql.expression.operator.predicate.BinaryPredicateOperatorTest]/[test-template:test_and(java.lang.Boolean, java.lang.Boolean)]/[test-template-invocation:#4] replaced Boolean return with True for org/opensearch/sql/data/model/ExprValueUtils::getBooleanValue → KILLED
|