cgivre commented on a change in pull request #2270:
URL: https://github.com/apache/drill/pull/2270#discussion_r677891935
##########
File path:
contrib/storage-http/src/main/java/org/apache/drill/exec/store/http/HttpPushDownListener.java
##########
@@ -82,9 +85,20 @@ public ScanPushDownListener builderFor(GroupScan groupScan) {
HttpScanPushDownListener(HttpGroupScan groupScan) {
this.groupScan = groupScan;
+ // Add fields from config
for (String field : groupScan.getHttpConfig().params()) {
filterParams.put(field, field);
}
+
+ // Add fields from the URL path as denoted by {}
+ HttpUrl url = HttpUrl.parse(groupScan.getHttpConfig().url());
+ if (url != null) {
+ List<String> urlParams = SimpleHttp.getURLParameters(url);
+ assert urlParams != null;
Review comment:
Fixed. Actually, by addressing another comment about the using the
`decodeURL` method, this issue is completely resolved without the need to throw
exceptions.
--
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]