Yida Wu has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/21493 )

Change subject: IMPALA-13131: Azure OpenAI API expects 'api-key' instead of 
'Authorization' in the request header
......................................................................


Patch Set 4:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/21493/4/be/src/exprs/ai-functions.inline.h
File be/src/exprs/ai-functions.inline.h:

http://gerrit.cloudera.org:8080/#/c/21493/4/be/src/exprs/ai-functions.inline.h@79
PS4, Line 79:     Status status = getAuthorizationHeader<platform>(authHeader, 
ai_api_key_);
            :     if (!status.ok()) return copyErrorMessage(ctx, 
status.msg().msg());
> It looks like gcc doesn't like passing templatized function as an argument
Is it okay if we pass the function pointer?
#define RETURN_STRINGVAL_IF_ERROR(ctx, stmt, errorFunc)        \
  do {                                                         \
    const ::impala::Status& _status = (stmt);                  \
    if (UNLIKELY(!_status.ok()))                               \
      return (errorFunc)(ctx, _status.msg().msg());            \
  } while (false)

RETURN_STRINGVAL_IF_ERROR(ctx, getAuthorizationHeader<platform>(authHeader, 
ai_api_key_), copyErrorMessage);



--
To view, visit http://gerrit.cloudera.org:8080/21493
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If9cc07940ce355d511bcf0ee615ff31042d13eb5
Gerrit-Change-Number: 21493
Gerrit-PatchSet: 4
Gerrit-Owner: Abhishek Rawat <[email protected]>
Gerrit-Reviewer: Abhishek Rawat <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Wenzhe Zhou <[email protected]>
Gerrit-Reviewer: Yida Wu <[email protected]>
Gerrit-Comment-Date: Tue, 11 Jun 2024 16:53:00 +0000
Gerrit-HasComments: Yes

Reply via email to