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

djwang pushed a commit to branch merge-with-upstream
in repository https://gitbox.apache.org/repos/asf/cloudberry-pxf.git

commit 82d659f974074a561b66a6b619c14af55944629b
Author: Himanshu Pandey <[email protected]>
AuthorDate: Thu Sep 22 14:27:04 2022 -0700

    Update Catalog query  to get Foreign Tables
---
 external-table/test/pxfheaders_test.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/external-table/test/pxfheaders_test.c 
b/external-table/test/pxfheaders_test.c
index 4235d19d..57ff1cb5 100644
--- a/external-table/test/pxfheaders_test.c
+++ b/external-table/test/pxfheaders_test.c
@@ -188,11 +188,7 @@ test_build_http_headers(void **state)
        will_return(normalize_key_name, pstrdup("X-GP-OPTIONS-FORMAT"));
 #if PG_VERSION_NUM >= 90400
        expect_string(normalize_key_name, key, "delimiter");
-
-       // Pipeline is failing with this error, so commenting this out.
-       // java.lang.IllegalArgumentException: The HTTP header line 
[x-gp-options-delimiter: ] does not conform to RFC 7230 and has been ignored.
-
-       //will_return(normalize_key_name, pstrdup("X-GP-OPTIONS-DELIMITER"));
+       will_return(normalize_key_name, pstrdup("X-GP-OPTIONS-DELIMITER"));
        expect_string(normalize_key_name, key, "null");
        will_return(normalize_key_name, pstrdup("X-GP-OPTIONS-NULL"));
        expect_string(normalize_key_name, key, "escape");
@@ -206,9 +202,7 @@ test_build_http_headers(void **state)
        expect_headers_append(input_data->headers, "X-GP-FORMAT", 
TextFormatName);
        expect_headers_append(input_data->headers, "X-GP-OPTIONS-FORMAT", 
"csv");
 #if PG_VERSION_NUM >= 90400
-    // Pipeline is failing with this error, so commenting this out.
-       // java.lang.IllegalArgumentException: The HTTP header line 
[x-gp-options-delimiter: ] does not conform to RFC 7230 and has been ignored.
-       //expect_headers_append(input_data->headers, "X-GP-OPTIONS-DELIMITER", 
"|");
+       expect_headers_append(input_data->headers, "X-GP-OPTIONS-DELIMITER", 
"|");
        expect_headers_append(input_data->headers, "X-GP-OPTIONS-NULL", "");
        expect_headers_append(input_data->headers, "X-GP-OPTIONS-ESCAPE", "\"");
        expect_headers_append(input_data->headers, "X-GP-OPTIONS-QUOTE", "\"");


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to