You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/07/08 20:03:00 UTC

[jira] [Commented] (DRILL-7970) Add URL Parameters to HTTP Plugin

    [ https://issues.apache.org/jira/browse/DRILL-7970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17377577#comment-17377577 ] 

ASF GitHub Bot commented on DRILL-7970:
---------------------------------------

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: dev-unsubscribe@drill.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Add URL Parameters to HTTP Plugin
> ---------------------------------
>
>                 Key: DRILL-7970
>                 URL: https://issues.apache.org/jira/browse/DRILL-7970
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Storage - Other
>    Affects Versions: 1.19.0
>            Reporter: Charles Givre
>            Assignee: Charles Givre
>            Priority: Major
>             Fix For: 1.20.0
>
>
> Many APIs require the user to pass parameters as part of the URL path.  This PR adds support for such a capability. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)