Jackie-Jiang commented on issue #12020:
URL: https://github.com/apache/pinot/issues/12020#issuecomment-1839788153

   To add more context, then validating this field:
   ```
   {
     "format": "1:MILLISECONDS:EPOCH",
     "granularity": "1:MILLISECONDS",
     "name": "ts",
     "dataType": "LONG"
   }
   ```
   
   Swagger will show the response as:
   ```
   {
     "format": "1:MILLISECONDS:EPOCH",
     "granularity": "1:MILLISECONDS",
     "sampleValue": null,
     "singleValueField": true,
     "notNull": false,
     "dataType": "LONG",
     "maxLength": 512,
     "virtualColumnProvider": null,
     "defaultNullValue": -9223372036854776000,
     "defaultNullValueString": "-9223372036854775808",
     "transformFunction": null,
     "name": "ts"
   }
   ```
   
   Note that the precision loss already happens here.
   
   I tried using the following json as input and it works without throwing 
exception, but of course the response still lose precision:
   ```
   {
     "format": "1:MILLISECONDS:EPOCH",
     "granularity": "1:MILLISECONDS",
     "dataType": "LONG",
     "defaultNullValue": -9223372036854775808
     "name": "ts"
   }
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to