Create and delete a SQL draft
This document explains how to create and delete a SQL draft in Ververica Platform: Self-Managed.
Create a SQL Draft
To enhance the efficiency of writing and managing Flink SQL jobs, Ververica Platform: Self-Managed provides a set of Flink SQL features. You can use these features to manage metadata, register user-defined functions (UDFs), and use the SQL editor.
- For a script without a code template, click Blank Stream Draft.
- For scripts with a code template, click Flink Table, Temporary Table, Temporary View statement, INSERT INTO.
- Click Next.
- Configure the basic parameters of the draft:
- Click Create.
- Click Save.
- Click Validate. This checks the SQL semantics of the draft, network connectivity, and the metadata information of the tables that are used by the draft. You can also click SQL Advice in the calculated results. This detects data risks and makes optimization suggestions for you. Data correctness analysis (such as nulls, changes etc) can be performed using this information.
- Optional: Click Debug.
You can enable the debugging feature to simulate deployment running, check outputs, and verify the business logic of SELECT and INSERT statements. This feature improves development efficiency and reduces the risks of poor data quality. For more information, see Debug a deployment.
- Click Deploy.
After the draft development and syntax check are complete, you can deploy the draft to publish the data to the production environment. After the draft is deployed, you can start the deployment for the draft on the Deployments page to run the deployment. For more information, see Start a deployment (/../user-guides/admin-operator-guide/manage-deployments/start-deployment).
Additional Functionality
The SQL Editor has the following toolbar buttons and tabs:
Toolbar Buttons
The following tools are available in the toolbar at the top of the SQL Editor window:
Tabs
The tabs on the edges of the SQL Editor page are as follows:
Delete a SQL Draft
To delete a SQL draft:
- In the left navigation, click the Namespace selector and select the namespace that you want to open.
- Click SQL editor and choose the Drafts tab.
- Select the SQL Draft you want to delete and click the Delete the selected draft (trashcan) icon.
