npawar opened a new issue #5463:
URL: https://github.com/apache/incubator-pinot/issues/5463


   Noticed today that adding a schema with a field missing in a spec resulted 
in just 500 error with message "Failed to add schema". See below example, 
`timeType` is missing in the spec.
   ```
   {
     "dimensionFieldSpecs": [{
       "name": "foo",
       "dataType": "STRING"
     }
     ],
     "timeFieldSpec": {
       "incomingGranularitySpec": {
         "dataType": "LONG",
         "name": "bar"
       }
     }
   ```
   Response:
   ```
   {
     "code": 500,
     "error": "Failed to add new schema test."
   }
   ```
   This message is not very helpful.
   We need to walk through all possible invalid schema scenarios and handle 
them properly.
   
   Tasks:
   1) List and validate all cases 
   2) Return proper message in case of validation failures
   3) More test cases to catch these
   


----------------------------------------------------------------
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.

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