Manage draft versions

Updated at:

Each deployment from the SQL development page generates a new draft version. You can compare, roll back, pin, or delete draft versions.

Background information

Draft versions support the following operations:

Compare draft versions

You can compare only SQL code and draft configurations. Differences are highlighted.

  1. Log on to the Realtime Compute console.

  2. Find the target Flink workspace and click Console in the Actions column.

  3. In the navigation pane, click Development > ETL.

  4. Double-click the name of the target draft.

  5. On the right side of the page, click Draft Versions.

  6. In the Actions column for the target version, click Diff.

  7. In the Select Editing Version section on the left, select the version to compare.

    The system displays a side-by-side diff of the Current Version and the Compared Version, with differences highlighted in yellow. In the upper-right corner, click Restore to revert to the selected version, or Delete to remove it.

Roll back draft versions

Roll back the current draft to a previously published version. This replaces your current draft content with the selected version.

  1. Log on to the Realtime Compute console.

  2. Find the target Flink workspace and click Console in the Actions column.

  3. In the navigation pane, click Development > ETL.

  4. Double-click the name of the target draft.

  5. On the right side of the page, click Draft Versions.

  6. In the Actions column for the target version, choose More > Rollback.

  7. In the dialog box that appears, click Rollback.

    The Draft Version dialog box shows the Current Version on the left and the Compared Version on the right, with differences highlighted.

Pin draft versions

The system retains up to 50 draft versions and automatically deletes the oldest when the limit is exceeded. Pin a version to prevent automatic deletion.

  1. Log on to the Realtime Compute console.

  2. Find the target Flink workspace and click Console in the Actions column.

  3. In the navigation pane, click Development > ETL.

  4. Double-click the name of the target draft.

  5. On the right side of the page, click Draft Versions.

  6. In the Actions column for the target version, choose More > Pin.

    A success message appears at the top of the page, and a lock icon appears next to the version number.

    Note

    Pinned versions cannot be deleted. You must unpin a version before you can delete it. To unpin a version, choose More > Unpin.

Delete draft versions

Delete draft versions that are no longer needed.

  1. Log on to the Realtime Compute console.

  2. Find the target Flink workspace and click Console in the Actions column.

  3. In the navigation pane, click Development > ETL.

  4. Double-click the name of the target draft.

  5. On the right side of the page, click Draft Versions.

  6. In the Actions column for the target version, choose More > Delete.

  7. In the dialog box that appears, click Delete.