Data Lake Compute provides a script file management feature to facilitate and accelerate repeated query tasks.
<blockquote class="d-mod-explain">
<div class="d-mod-title d-explain-title">
<i class="d-icon-explain"></i>说明:
</div>
<p> Up to 100 SQL scripts can be saved in the console.</p>
</blockquote>
<h2 id="creating-a-script">Creating a script</h2><ol>
Log in to the Data Lake Compute console, go to the Query analysis page, and click Resource package.
On the Resource package tab, hover over the Script file row and click
> Create script.
Enter and save the script content.
![]()
- Script name: It can contain up to 25 letters and underscores.
- Script description: It can contain up to 2,048 characters.
- SQL statement: It must be a standard SQL statement containing up to 1,000 characters within 2 MB in size.
Running a script
- Log in to the Data Lake Compute console, go to the Query analysis page, and click Resource package.
- On the Resource package tab, hover over the target script name and click
> Copy script to SQL.
- Select the compute engine and click Run.
![]()
- Log in to the Data Lake Compute console, go to the Query analysis page, and click Resource package.
- On the Resource package tab, hover over the target script name and click
> Learn more to view the script details.
![]()
![]()
Deleting a script
- Log in to the Data Lake Compute console, go to the Query analysis page, and click Resource package.
- On the Resource package tab, hover over the target script name and click
> Delete to delete the script.
![]()
<blockquote class="d-mod-notice">
<div class="d-mod-title d-notice-title">
<i class="d-icon-notice"></i>注意:
</div>
<p> Note that a deleted script cannot be recovered. Proceed with caution.</p>
</blockquote>
Was this page helpful?