fx19880617 opened a new pull request #5033: Set alias name in resultTable 
schema names
URL: https://github.com/apache/incubator-pinot/pull/5033
 
 
   
   Sample query
   ```
   select event_name, count(*) as cnt from meetupRsvp group by event_name limit 
1
   ```
   Old response:
   ```
   {
       "resultTable": {
           "dataSchema": {
               "columnNames": ["event_name", "count(*)"],
               "columnDataTypes": ["STRING", "LONG"]
           },
           "rows": [
               ["Remote Pair Programming Session: Callbacks, Closures, & 
Higher-Order Functions", 1]
           ]
       },
       "exceptions": [],
       "numServersQueried": 1,
       "numServersResponded": 1,
       "numSegmentsQueried": 1,
       "numSegmentsProcessed": 1,
       "numSegmentsMatched": 1,
       "numConsumingSegmentsQueried": 1,
       "numDocsScanned": 232,
       "numEntriesScannedInFilter": 0,
       "numEntriesScannedPostFilter": 232,
       "numGroupsLimitReached": true,
       "totalDocs": 232,
       "timeUsedMs": 5,
       "segmentStatistics": [],
       "traceInfo": {},
       "minConsumingFreshnessTimeMs": 1580432060957
   }
   
   New  response:
   ```
   {
       "resultTable": {
           "dataSchema": {
               "columnNames": ["event_name", "cnt"],
               "columnDataTypes": ["STRING", "LONG"]
           },
           "rows": [
               ["Remote Pair Programming Session: Callbacks, Closures, & 
Higher-Order Functions", 1]
           ]
       },
       "exceptions": [],
       "numServersQueried": 1,
       "numServersResponded": 1,
       "numSegmentsQueried": 1,
       "numSegmentsProcessed": 1,
       "numSegmentsMatched": 1,
       "numConsumingSegmentsQueried": 1,
       "numDocsScanned": 232,
       "numEntriesScannedInFilter": 0,
       "numEntriesScannedPostFilter": 232,
       "numGroupsLimitReached": true,
       "totalDocs": 232,
       "timeUsedMs": 5,
       "segmentStatistics": [],
       "traceInfo": {},
       "minConsumingFreshnessTimeMs": 1580432060957
   }

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to