shuwenwei opened a new pull request, #19196: URL: https://github.com/apache/iotdb/pull/19196
## Summary Reject registered table-model UDFs in schema write statements that persist evaluable expressions: - `UPDATE` assignments and predicates; - table-device `DELETE` predicates. These paths can store UDF expressions in schema WAL. Replaying that WAL re-evaluates the UDF, which can fail after the function or its jar is removed, or produce different results for non-deterministic UDFs. This is intended as a temporary correctness guard. Supporting UDFs in these statements requires a deterministic, materialized WAL representation. ## Changes - Add an analyzer-only `udfForbidden` flag to `MPPQueryContext`. - Enable it while analyzing `UPDATE` and table-device `DELETE`. - Check registered table UDFs centrally in `ExpressionAnalyzer.visitFunctionCall()`. - Cover pipe-transferred UPDATEs, whose expressions are pre-analyzed and whose predicate is stored in `tagFuzzyPredicate`. - Keep built-in functions, normal writes, `SELECT`, and `INSERT INTO ... SELECT` unchanged. - Add localized semantic errors and SQL-level regression coverage. ## Validation - Added integration coverage for UPDATE assignment, UPDATE predicate, DELETE DEVICE predicate, built-in functions, and SELECT behavior. - Not compiled or run locally; only `git diff --check` was executed. Related to #19178. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
