Akanksha-kedia opened a new pull request, #19048: URL: https://github.com/apache/pinot/pull/19048
## Description The `updateSchema` endpoint in `PinotSchemaRestletResource` was catching `SchemaBackwardIncompatibleException` but returning only a generic message (`"Only allow adding new columns"`) without including the actual reason from the exception. This made it difficult for operators to understand why a schema update was rejected — they had to dig through server logs to find the real cause. ### Fix Include `e.getMessage()` in the error response, which contains detailed incompatibility information such as: - Missing or renamed columns - Incompatible field type changes - Primary key changes - Suggested fixes A test is added/updated in `PinotSchemaRestletResourceTest` to assert the detailed reason appears in the response. ## Test plan - [ ] `PinotSchemaRestletResourceTest` passes - [ ] Manual: attempt a backward-incompatible schema update and verify the response body contains the specific reason -- 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]
