Expected results when querying fields ↗
The following are returned when querying fields:
- If specific fields are stated in the fields stage, those exact fields will be returned.
- If no fields are stated in the query, the
xdm_corefieldset will be returned. - Unmapped fields are treated as NULL. An unmapped field is a
xdmfield that hasn't been mapped from the relevant datasets using a Data Model Rule. - By default, the
_timesystem field will be added to all data model queries. Yet, the_timesystem field will not be added to queries that contain thecompstage. - For dataset queries, all current system fields will be returned, even if they are not stated in the query.
- For UNION between XDM and dataset, each part of the UNION will return its own fields.
- Each new column in the result set created by the alter stage will be added as the last column. You can specify a different column order by modifying the field order in the fields stage of the query.
- Each new column in the result set created by the comp stage will be added as the last column. Other fields that are not in the
group by / calculatedcolumn will be removed from the result set, including the core fields and_timesystem field. - When no limit is explicitly stated in a
datamodelquery, a maximum of 1000 results are returned (default). When this limit is applied to results using the limit stage, it will be indicated in the user interface.