Joe McDonnell created IMPALA-13504:
--------------------------------------
Summary: AI functions should be included in
FunctionCallExpr::isNondeterministicBuiltinFn
Key: IMPALA-13504
URL: https://issues.apache.org/jira/browse/IMPALA-13504
Project: IMPALA
Issue Type: Bug
Components: Frontend
Affects Versions: Impala 4.5.0
Reporter: Joe McDonnell
FunctionCallExpr::isNondeterministicBuiltinFn() is used to determine if a
function can produce different results for different invocations with the same
arguments in a single query. Currently, it applies to rand/random/uuid. It can
influence sorting (see IMPALA-4728). It is also controls whether constant
folding can be used (if all the arguments are constants). It would be uncommon
for an AI function to be used on a constant, but it is theoretically possible.
It seems like ai_generate_text / ai_generate_text_default should be on that
list, because it isn't deterministic.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)