A request to execute a query is received in a database system. In
response, the database system determines that a collection of data
elements to be returned by the query corresponds to a first data
structure not defined within a type dictionary of the database system.
The database system obtains attribute values that describe respective
data fields within the first data structure, and records, within the type
dictionary, a first data type definition that specifies the data fields
described by the attribute values.