File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed 
esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type 
esql/compute/gen/src/main/java/org/elasticsearch/compute/gen Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 4444import  static  org .elasticsearch .compute .gen .Types .DRIVER_CONTEXT ;
4545import  static  org .elasticsearch .compute .gen .Types .EXPRESSION_EVALUATOR ;
4646import  static  org .elasticsearch .compute .gen .Types .EXPRESSION_EVALUATOR_FACTORY ;
47- import  static  org .elasticsearch .compute .gen .Types .FLOAT_BLOCK ;
4847import  static  org .elasticsearch .compute .gen .Types .INT_BLOCK ;
4948import  static  org .elasticsearch .compute .gen .Types .LONG_BLOCK ;
5049import  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    }
Original file line number Diff line number Diff line change 3939import  static  org .elasticsearch .compute .gen .Types .DOUBLE_VECTOR_BUILDER ;
4040import  static  org .elasticsearch .compute .gen .Types .DOUBLE_VECTOR_FIXED_BUILDER ;
4141import  static  org .elasticsearch .compute .gen .Types .FLOAT_BLOCK_BUILDER ;
42- import  static  org .elasticsearch .compute .gen .Types .FLOAT_VECTOR ;
4342import  static  org .elasticsearch .compute .gen .Types .FLOAT_VECTOR_BUILDER ;
4443import  static  org .elasticsearch .compute .gen .Types .FLOAT_VECTOR_FIXED_BUILDER ;
4544import  static  org .elasticsearch .compute .gen .Types .INT_BLOCK ;
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments