saiswapnilar-stripe opened a new pull request, #20316:
URL: https://github.com/apache/pinot/pull/20316

   Summary
   
   We have observed backwards incompatible query compilation regressions upon 
the last 2 Calcite upgrades. While https://github.com/apache/pinot/pull/18281 
partially covered this by enabling parse validation of queries, a later Calcite 
upgrade (https://github.com/apache/pinot/pull/18658) surfaced an issue due to 
updated `GROUP BY` semantics.
   
   This PR adds a batch query compilation endpoint to the broker API which can 
catch all regressions in the MSE compilation path. The endpoint accepts a 
nonempty queries array and returns an ordered result for each item, including 
SQL, compilation status, and any error code/message. It preserves each query's 
options: single-stage queries compile to PinotQuery, while multi-stage queries 
run through validation, relational conversion, and optimization. Optional table 
configurations, schemas, and logical-table configurations support validation 
against supplied metadata; otherwise it uses the broker table cache.
   
   Tests cover mixed success/failure batches, invalid or missing SQL, empty 
batches, engine selection, static metadata, live-cache fallback, and case 
sensitivity. Compilation validation does not establish execution correctness or 
performance, and the single-stage path does not reproduce every broker-time 
validation.
   
   Suggested labels: `feature`.
   
   Testing: `./mvnw -B -pl pinot-broker,pinot-controller -am 
-Dtest=PinotClientRequestTest,PinotQueryResourceStaticValidationTest 
-Dsurefire.failIfNoSpecifiedTests=false test` — 62 broker tests and 2 
controller tests passed. Affected-module formatting, checkstyle, and license 
checks passed.
   


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