Gautam-aman opened a new pull request, #17661:
URL: https://github.com/apache/pinot/pull/17661
### Description
This PR adds a new parse-only SQL endpoint to the Pinot Broker that
validates SQL syntax without planning or executing the query.
The endpoint allows SQL parsing to be tested independently and helps catch
parser regressions early, especially during SQL / Calcite upgrades.
### Motivation
Currently, SQL parsing errors can only be detected during query execution.
This makes it difficult to isolate parser-level regressions.
Issue #17615 requested a broker endpoint that only parses SQL and reports
success or failure without executing the query.
### Changes
- Added a new broker REST endpoint:
- `POST /query/parse`
- Parses SQL syntax only
- Returns HTTP 200 for valid SQL
- Returns HTTP 400 with error message for invalid SQL
- Added unit tests covering valid and invalid SQL parsing
### Testing
- Added `QueryParseResourceTest`
- Tests executed locally using:
--
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]