Skip to main content

Deploy a SQL draft to production

This document explains how to deploy a SQL draft. The FlinkSQL code of a SQL deployment must be created or updated via deploying corresponding SQL draft.

Background information

Unlike a Jar or Python deployment, deploying a SQL draft is the only way to create a SQL deployment.

Procedure

  1. On the Dashboard page, locate the workspace you want to manage and click the name to open the Console.

  2. In the Console navigation pane, click SQL editor and choose the Drafts tab.

  3. Double click to open the SQL draft and click Deploy in the toolbar.

  4. Enter some comments for this deploy version. Under advanced options, you can choose to deploy to a session cluster rather than a per-job deployment target and skip the validation while deploying. After which, click Confirm.

After clicking on Confirm, your SQL deployment will appear at the top of the deployment list on the Deployments page, after which you can start the deployment process. Additionally, a new SQL draft version will be generated, and you can check it out by clicking the Versions button on the right-side tabs in the SQL editor.