The aggregate name is composed of an optional
In general, UDAs live in the same namespace as one-argument user-defined
functions (see
An unqualified UDA name (that is, the UDA name without its schema name) may not be the name of an aggregate defined in part 2 of the SQL Standard, section 10.9:
In addition, an unqualified UDA name may not be the name of any of the
The valueDataType can be any valid nullable
The returnDataType can be any valid nullable
The singleQuotedString specified by the
The org.apache.derby.agg.Aggregator interface extends java.io.Serializable, so you must make sure that all of the state of your UDA is serializable. A UDA may be serialized to disk when it performs grouped aggregation over a large number of groups. That is, intermediate results may be serialized to disk for a query like the following:
The serialization will fail if the UDA contains non-serializable fields.
The owner of the schema where the UDA lives automatically gains the USAGE
privilege on the UDA and can grant this privilege to other users and roles. Only
the
See "Programming user-defined aggregates" in the