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

ASF subversion and git services commented on IMPALA-13812:
----------------------------------------------------------

Commit 1c6ff5f98d010ad81601aaa60662dfb7bec3b5d9 in impala's branch 
refs/heads/master from Yida Wu
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=1c6ff5f98 ]

IMPALA-13812: Fail query for certain errors related to AI functions

The ai_generate_text() and ai_generate_text_default() functions
return error message as a result (string) which could be
misleading in some cases. This patch fixes this issue by setting
the error in the context as a udf error, causing the query to
fail in cases of configuration related errors or http errors
when accessing the AI endpoint.

Tests:
Ran core tests.
Added custom testcase TestAIGenerateText for failure cases
with ai_generate_text_default().
Added testcase TestExprs.test_ai_generate_text_exprs for
failure cases with ai_generate_text().

Change-Id: I639e48e64d62f7990cf9a3c35a59a0ee3a2c64e0
Reviewed-on: http://gerrit.cloudera.org:8080/22588
Reviewed-by: Yida Wu <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> Fail query for certain errors related to AI functions
> -----------------------------------------------------
>
>                 Key: IMPALA-13812
>                 URL: https://issues.apache.org/jira/browse/IMPALA-13812
>             Project: IMPALA
>          Issue Type: Task
>            Reporter: Abhishek Rawat
>            Assignee: Yida Wu
>            Priority: Critical
>             Fix For: Impala 5.0.0
>
>
> The ai_generate_text() and ai_generate_text_default() functions returns error 
> message as a result (string) which could be misleading in some cases. Ideally 
> we want to handle following scenarios by returning a SQL error/exception and 
> failing the query:
>  # HTTP error codes returned by the AI endpoint
>  # Required configurations such as endpoint, model, credentials, etc are not 
> set.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to