DLI allows you to customize query templates or save frequently used SQL statements as templates to facilitate SQL operations. After templates are saved, you do not need to write SQL statements. You can directly perform the SQL operations using the templates.
The current system provides various standard TPC-H query statement templates. You can select a template as needed. This example shows how to use a TPC-H template to develop and submit a Spark SQL job.
For details about the templates, see SQL Template Management.
This example uses the default queue and database preset in the system as an example. You can also run query statements on a self-created queue and database.
For details about how to create a queue, see "Creating a Queue" in Data Lake Insight User Guide. For details about how to create a database, see Creating a Database.