mghildiy commented on issue #15255:
URL: https://github.com/apache/pinot/issues/15255#issuecomment-2745325800

   My schema is:
   
   ```
   {
     "schemaName": "my-test-schema",
     "enableColumnBasedNullHandling": true,
     "dimensionFieldSpecs": [
       {
         "name": "field",
         "dataType": "FLOAT",
         "fieldType": "DIMENSION"
       }
     ]
   }
   ```
   
   I have data csv as:
   
   ```
   field
   1.43
   null
   ```
   
   When I try to insert data using pinot-admin.sh, I get error:
   
   ```
   Caused by: java.lang.NumberFormatException: For input string: "null"
           at 
java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054)
           at 
java.base/jdk.internal.math.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
           at java.base/java.lang.Float.parseFloat(Float.java:570)
           at 
org.apache.pinot.common.utils.PinotDataType$11.toFloat(PinotDataType.java:617)
           at 
org.apache.pinot.common.utils.PinotDataType$7.convert(PinotDataType.java:425)
           at 
org.apache.pinot.common.utils.PinotDataType$7.convert(PinotDataType.java:375)
           at 
org.apache.pinot.segment.local.recordtransformer.DataTypeTransformer.transform(DataTypeTransformer.java:118)
   
   ```
   
   What mistake am I making while inserting data?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to