Skip to content

Commit 1ceadcf

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 2d1c02d commit 1ceadcf

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type/DataType.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public enum DataType {
192192
* These fields are strictly for use in retrieval from indices, rate
193193
* aggregation, and casting to their parent numeric type.
194194
*/
195-
//COUNTER_FLOAT(builder().esType("counter_float").estimatedSize(Float.BYTES).docValues().counter()),
195+
// COUNTER_FLOAT(builder().esType("counter_float").estimatedSize(Float.BYTES).docValues().counter()),
196196
/**
197197
* 64-bit signed numbers loaded as a java {@code long}.
198198
*/
@@ -227,7 +227,13 @@ public enum DataType {
227227
* Values of this type never escape type resolution and functions,
228228
* operators, and results should never encounter one.
229229
*/
230-
FLOAT(builder().esType("float").estimatedSize(Float.BYTES).rationalNumber().docValues()/*.counter(COUNTER_FLOAT)*/.widenSmallNumeric(DOUBLE)),
230+
FLOAT(
231+
builder().esType("float")
232+
.estimatedSize(Float.BYTES)
233+
.rationalNumber()
234+
.docValues()
235+
/*.counter(COUNTER_FLOAT)*/.widenSmallNumeric(DOUBLE)
236+
),
231237
/**
232238
* 16-bit floating point numbers widened on load to {@link #DOUBLE}.
233239
* Values of this type never escape type resolution and functions,
@@ -856,5 +862,6 @@ Builder counter(DataType counter) {
856862
return this;
857863
}
858864
}
865+
859866
public static final boolean NATIVE_FLOATS_FEATURE_FLAG = Booleans.parseBoolean(System.getProperty("esql_native_floats_enabled"), false);
860867
}

x-pack/plugin/esql/compute/gen/src/main/java/org/elasticsearch/compute/gen/EvaluatorImplementer.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import static org.elasticsearch.compute.gen.Types.DRIVER_CONTEXT;
4545
import static org.elasticsearch.compute.gen.Types.EXPRESSION_EVALUATOR;
4646
import static org.elasticsearch.compute.gen.Types.EXPRESSION_EVALUATOR_FACTORY;
47-
import static org.elasticsearch.compute.gen.Types.FLOAT_BLOCK;
4847
import static org.elasticsearch.compute.gen.Types.INT_BLOCK;
4948
import static org.elasticsearch.compute.gen.Types.LONG_BLOCK;
5049
import static org.elasticsearch.compute.gen.Types.PAGE;
@@ -1089,11 +1088,9 @@ MethodSpec close() {
10891088
}
10901089

10911090
static boolean isBlockType(TypeName type) {
1092-
return type.equals(INT_BLOCK)
1093-
|| type.equals(LONG_BLOCK)
1094-
|| type.equals(DOUBLE_BLOCK)
1095-
// TODO NATIVE FLOATS
1096-
// || type.equals(FLOAT_BLOCK)
1091+
return type.equals(INT_BLOCK) || type.equals(LONG_BLOCK) || type.equals(DOUBLE_BLOCK)
1092+
// TODO NATIVE FLOATS
1093+
// || type.equals(FLOAT_BLOCK)
10971094
|| type.equals(BOOLEAN_BLOCK)
10981095
|| type.equals(BYTES_REF_BLOCK);
10991096
}

x-pack/plugin/esql/compute/gen/src/main/java/org/elasticsearch/compute/gen/Methods.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import static org.elasticsearch.compute.gen.Types.DOUBLE_VECTOR_BUILDER;
4040
import static org.elasticsearch.compute.gen.Types.DOUBLE_VECTOR_FIXED_BUILDER;
4141
import static org.elasticsearch.compute.gen.Types.FLOAT_BLOCK_BUILDER;
42-
import static org.elasticsearch.compute.gen.Types.FLOAT_VECTOR;
4342
import static org.elasticsearch.compute.gen.Types.FLOAT_VECTOR_BUILDER;
4443
import static org.elasticsearch.compute.gen.Types.FLOAT_VECTOR_FIXED_BUILDER;
4544
import static org.elasticsearch.compute.gen.Types.INT_BLOCK;

0 commit comments

Comments
 (0)