User Guide > User Guide > Using External Tables > How External Tables Work
Was this helpful?
How External Tables Work
For the external table functionality, Analytics Engine leverages Apache Spark's extensive connectivity through the Spark Connector.
External Tables architecture is composed of two main components:
Spark Connector
Analytics Engine
Analytics Engine receives queries operating on External Tables from the user, rewrites them into JSON requests for external data, which are sent to the Spark Connector. The Spark Connector is a Spark application that behaves as a multi-threaded Spark server. It receives requests from Analytics Engine, translates them into Spark jobs, and launches them. These jobs typically issue queries (to SparkSQL) like "INSERT INTO analyticsengine_table SELECT * FROM external_resource" for reading external data or "INSERT INTO external_resource SELECT * FROM analyticsengine_table" for writing to external systems. Finally, these jobs use the Spark Connector to push and pull data in and out of Analytics Engine.
The DBMS configuration parameter insert_external in config.dat controls whether inserts into X100 external table are allowed. The default is ON, which allows inserts. Inserts can be blocked by setting this parameter to OFF.
Last modified date: 09/11/2026