drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [drill] cgivre opened a new pull request #2189: DRILL-7877 - Streaming REST API Fails to Send Multiple Batches
Date Sun, 14 Mar 2021 04:54:11 GMT

cgivre opened a new pull request #2189:
URL: https://github.com/apache/drill/pull/2189


   # [DRILL-7877](https://issues.apache.org/jira/browse/DRILL-7877): DRILL-7877 - Streaming
REST API Fails to Send Multiple Batches
   
   ## Description
   
   [DRILL-7733](https://github.com/apache/drill/pull/2149) introduced the streaming reader
for the REST API for Drill.  Unfortunately, a minor bug was introduced as well in that if
the user executed a query that produced more than one batch, the schema would be passed in
the first batch with no rows, then the rows for future batches would be ignored in the results.
   
   This minor fix corrects this situation. 
   
   The behavior can be verified by executing the query below in Postman via the Drill REST
API.  
   
   ```sql
   SELECT position_title, COUNT(*) as pc 
   FROM cp.`employee.json` 
   GROUP BY position_title
   ```
   
   ## Documentation
   No user facing changes.
   
   ## Testing
   Added an additional unit test and tested manually. 


----------------------------------------------------------------
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:
users@infra.apache.org



Mime
View raw message