github-actions[bot] commented on code in PR #68853:
URL: https://github.com/apache/doris/pull/68853#discussion_r4684210369
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/CreateFunctionCommand.java:
##########
@@ -444,12 +444,6 @@ private void checkUdfSupportedTypes() throws
AnalysisException {
}
private void checkUdfSupportedType(Type type, String typePosition) throws
AnalysisException {
- // Reject bitmap/hll/quantile_state type
Review Comment:
[P2] Reject FILE-containing AGG_STATE types in UDF declarations.
`checkUdfSupportedType` descends through ARRAY/MAP/STRUCT, but an
`AggStateType` falls through without checking its subtype. This PR already
makes `AGG_STATE<count(FILE)>` representable
(`AggStateType.toCatalogDataType()` preserves the FILE subtype), so a CREATE
scalar/aggregate/table function can accept a FILE-containing argument, return,
or intermediate type even though direct and other nested FILE types are
rejected; the resulting UDF type reaches an unsupported FILE state boundary.
Recurse through `AggStateType` or reject `type.typeContainsFile()` here, and
add argument/return/intermediate coverage for `AGG_STATE<count(FILE)>`.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]