Accelerate code development
DataWorks offers features such as permission verification, automatic code completion, and built-in code templates to help you write code more efficiently. You can quickly check your permissions on a table, get guided authorization, and receive intelligent code suggestions based on keywords. This topic describes how to use these features in the code editor.
Limitations
These features are supported only for ODPS SQL and script statements.
Go to the code editor
Log on to the DataWorks console. In the target region, click in the left-side navigation pane. Select a workspace from the drop-down list and click Go to Data Development.
Go to the code editor of a node.
In the directory tree on the DataStudio page, find and double-click the target node to open the code editor.
Use productivity features
DataWorks provides the features described in the following table to help you write code more efficiently in the code editor.
Feature | Description |
Permission verification | When you hover over a table name in a SELECT statement, DataWorks checks your permissions. If your account lacks query permissions for the table or its fields, DataWorks prompts you to apply for access in Security Center. A tooltip appears under the table name, explaining the issue and providing a link to apply for access. Note
|
Automatic code completion |
|
Built-in code templates | DataWorks provides built-in code templates for common statements, such as Note In the generated statement, TABLENAME is selected by default, so you can immediately replace it with your actual table name. For example, if you select the SELECT_ALL template, the following code is generated in the editor. |