Learning Apache Apex
by Ananth Gundabattula, Thomas Weise, Munagala V. Ramanath, David Yan, Kenneth Knowles
Calcite integration
For readers who are curious about how the integration with Calcite is implemented, we cover the relevant classes briefly in this section.
Calcite is a rather substantial project with a large and complex API, so in this short section we will merely touch upon its capabilities; the reader is encouraged to review the Calcite docs and source code to gain deeper insights into the API.
Here is a (very) high-level summary of how things work. After the desired custom functions and pseudo-tables are registered with the SQLExecEnvironment class (typically, in the populateDAG() method), the executeSQL() method is invoked to kick off all the hard work of parsing the SQL query, creating the necessary operators and adding them to the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access