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

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

cgivre commented on a change in pull request #2474:
URL: https://github.com/apache/drill/pull/2474#discussion_r816439185



##########
File path: 
contrib/storage-http/src/main/java/org/apache/drill/exec/store/http/HttpBatchReader.java
##########
@@ -218,6 +219,14 @@ protected HttpUrl buildUrl() {
   protected void addFilters(Builder urlBuilder, List<String> params,
       Map<String, String> filters) {
 
+    // If the request is a POST query and the user selected to push the 
filters to either JSON body
+    // or the post body, do not add to the query string.
+    if (subScan.tableSpec().connectionConfig().getMethodType() == 
HttpApiConfig.HttpMethod.POST &&
+      
(subScan.tableSpec().connectionConfig().getPostParameterLocation().equalsIgnoreCase(HttpApiConfig.POST_BODY_POST_LOCATION)
 ||
+        
subScan.tableSpec().connectionConfig().getPostParameterLocation().equalsIgnoreCase(HttpApiConfig.JSON_BODY_POST_LOCATION)
 )

Review comment:
       Fixed




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


> Add JSON Post Body to HTTP Rest Storage Plugin
> ----------------------------------------------
>
>                 Key: DRILL-8140
>                 URL: https://issues.apache.org/jira/browse/DRILL-8140
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Storage - Other
>    Affects Versions: 1.19.0
>            Reporter: Charles Givre
>            Assignee: Charles Givre
>            Priority: Major
>             Fix For: Future
>
>
> Some APIs require information be sent as a JSON post body.   This PR enables 
> that. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to