Yida Wu has uploaded this change for review. ( http://gerrit.cloudera.org:8080/22588
Change subject: IMPALA-13812: Fail query for certain errors related to AI functions ...................................................................... IMPALA-13812: Fail query for certain errors related to AI functions The ai_generate_text() and ai_generate_text_default() functions returns 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 testcase TestAIGenerateText. Change-Id: I639e48e64d62f7990cf9a3c35a59a0ee3a2c64e0 --- M be/src/exprs/ai-functions-ir.cc M be/src/exprs/ai-functions.cc M be/src/exprs/ai-functions.h M be/src/exprs/expr-test.cc A tests/custom_cluster/test_ai_generate_text.py 5 files changed, 165 insertions(+), 26 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/88/22588/1 -- To view, visit http://gerrit.cloudera.org:8080/22588 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I639e48e64d62f7990cf9a3c35a59a0ee3a2c64e0 Gerrit-Change-Number: 22588 Gerrit-PatchSet: 1 Gerrit-Owner: Yida Wu <[email protected]>
