This is an automated email from the ASF dual-hosted git repository.

cgivre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/drill.git


The following commit(s) were added to refs/heads/master by this push:
     new 355e074858 DRILL-8191: HTTP Request Function Not Detecting JSON Config 
(#2517)
355e074858 is described below

commit 355e074858373ab7b42dd303bee9feebe4a671c0
Author: Charles S. Givre <[email protected]>
AuthorDate: Thu Apr 7 14:10:37 2022 -0400

    DRILL-8191: HTTP Request Function Not Detecting JSON Config (#2517)
---
 .../src/main/java/org/apache/drill/exec/store/http/util/SimpleHttp.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/contrib/storage-http/src/main/java/org/apache/drill/exec/store/http/util/SimpleHttp.java
 
b/contrib/storage-http/src/main/java/org/apache/drill/exec/store/http/util/SimpleHttp.java
index 199635b8a8..f38f7643a3 100644
--- 
a/contrib/storage-http/src/main/java/org/apache/drill/exec/store/http/util/SimpleHttp.java
+++ 
b/contrib/storage-http/src/main/java/org/apache/drill/exec/store/http/util/SimpleHttp.java
@@ -831,7 +831,7 @@ public class SimpleHttp {
       throw UserException.functionError()
         .message("You must call this function with a valid endpoint name.")
         .build(logger);
-    } else if (endpointConfig.inputType() != "json") {
+    } else if (! endpointConfig.inputType().contentEquals("json")) {
       throw UserException.functionError()
         .message("Http_get only supports API endpoints which return json.")
         .build(logger);

Reply via email to