jayeshchoudhary opened a new pull request, #10071: URL: https://github.com/apache/pinot/pull/10071
### Issue - when running a sql query, if the api result contains both `exceptions` as well as `resultTable` then ideally UI should show both - instead UI is showing only exceptions - API response ```bash curl -H "Content-Type: application/json" -X POST \ -d '{"sql":"select count(*) from airlineStats "}' \ http://localhost:8000/query/sql ``` ```json { "resultTable": { "dataSchema": { "columnNames": [ "count(*)" ], "columnDataTypes": [ "LONG" ] }, "rows": [ [ 9343 ] ] }, "exceptions": [ { "errorCode": 305, "message": "null:\n1 segments unavailable: [airlineStats_OFFLINE_16072_16072_0]" } ], "numServersQueried": 1, "numServersResponded": 1, "numSegmentsQueried": 30, "numSegmentsProcessed": 30, "numSegmentsMatched": 30, "numConsumingSegmentsQueried": 0, "numConsumingSegmentsProcessed": 0, "numConsumingSegmentsMatched": 0, "numDocsScanned": 9343, "numEntriesScannedInFilter": 0, "numEntriesScannedPostFilter": 0, "numGroupsLimitReached": false, "totalDocs": 9343, "timeUsedMs": 7, "offlineThreadCpuTimeNs": 0, "realtimeThreadCpuTimeNs": 0, "offlineSystemActivitiesCpuTimeNs": 0, "realtimeSystemActivitiesCpuTimeNs": 0, "offlineResponseSerializationCpuTimeNs": 0, "realtimeResponseSerializationCpuTimeNs": 0, "offlineTotalCpuTimeNs": 0, "realtimeTotalCpuTimeNs": 0, "segmentStatistics": [], "traceInfo": {}, "numRowsResultSet": 1, "minConsumingFreshnessTimeMs": 0, "numSegmentsPrunedByBroker": 0, "numSegmentsPrunedByServer": 0, "numSegmentsPrunedInvalid": 0, "numSegmentsPrunedByLimit": 0, "numSegmentsPrunedByValue": 0, "explainPlanNumEmptyFilterSegments": 0, "explainPlanNumMatchAllFilterSegments": 0 } ```  ### Solution show both query result as well as error message if both exist  -- 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: commits-unsubscr...@pinot.apache.org 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