The SQL compiler
The SQL compiler gathers information to help it process queries.
To obtain data from data sources, users and applications submit queries in SQL to the federated database. When a query is submitted, the SQL compiler consults information in the global catalog and the data source wrapper to help it process the query. This includes information about connecting to the data source, server information, mappings, index information, and processing statistics.