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


   # [DRILL-7970](https://issues.apache.org/jira/browse/DRILL-7970): Add URL 
Parameters to HTTP Plugin
   
   ## Description
   Many APIs require that arguments are passed as part of the URL.  For 
instance, github's API allows you to get information about an organization's 
repositories with the following URL:  https://api.github.com/orgs/{org}/repos
   
   This PR adds a capability where filters can be pushed down into the URL from 
a query so that a user could execute a query:
   
   ```sql
   SELECT * 
   FROM api.github
   WHERE org='apache'
   ``` 
   In this query, the value for the `org` parameter would be populated in the 
URL. 
   
   ## Documentation
   Updated the `README.md` document.  
   To enable URL parameters, a user simply must add curly braces around a 
parameter which should be passed down.  Note that Drill will throw an exception 
in the event an API has a URL parameter and one is not supplied in the query.
   
   ## Testing
   Added two additional unit tests to testing class for the HTTP plugin as well 
as an additional test for the http client. 


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


Reply via email to