shauryachats opened a new pull request, #17414:
URL: https://github.com/apache/pinot/pull/17414

   ## Summary
   Adds an API type dropdown to the timeseries query UI, allowing users to 
choose between Prometheus-compatible and Broker response APIs. Both APIs now 
seamlessly render in the timeseries chart.
   
   ## Changes
   
   **Backend:**
   - Added `POST /query/timeseries` endpoint in `PinotQueryResource` that 
forwards to broker's native timeseries API
   - Routing logic supports both Prometheus (`GET 
/timeseries/api/v1/query_range`) and Broker (`POST /query/timeseries`) endpoints
   
   **Frontend:**
   - Added "API Type" dropdown with options: "Prometheus API" and "Broker 
Response API"
   - Automatically converts Broker `ResultTable` format to Prometheus format 
for chart compatibility
   - Added `convertBrokerToPrometheusFormat()` utility to transform response 
formats
   - Selection persists in URL parameters and defaults to Prometheus API


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