Hologres integrates seamlessly with MaxCompute, allowing you to query and analyze massive datasets in MaxCompute with standard PostgreSQL statements without moving data and retrieve results quickly.
Prerequisites
You have bound a Hologres compute resource.
Procedure
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.
Create a Workflow.
If you already have a Workflow, you can skip this step.
Hover over the
icon and select Workflow.In the Create Workflow dialog box, enter a Workflow Name.
Click Create.
Create a Hologres SQL node.
Hover over the
icon and click .Alternatively, find the target workflow, right-click Hologres, and select .
In the Create Node dialog box, enter a Node Name.
NoteThe node name must be 128 characters or fewer and can contain letters, Chinese characters, digits, underscores (_), and periods (.).
Click OK.
In the node editor, write and run the code.
After you create the node, write Hologres SQL code. For more information about SQL syntax, see SELECT.
NoteA
SELECTquery without alimitclause returns a maximum of 200 results by default. To display more results, add alimitclause to theSELECTstatement. A maximum of 10,000 results can be returned.For example, the
select col_1,col_2 from your_table_name where pt>0 limit 500;statement returns 500 results.On the right side of the node editor, click Scheduling Properties to configure the node's scheduling properties. For more information, see Configure basic properties.
Save and commit the node.
ImportantYou must configure the rerun property and specify the parent nodes for the node before committing it.
Click the
icon in the toolbar to save the node.Click the
icon in the toolbar.In the Submit New Version dialog box, enter a Change description.
Click OK.
If you use a workspace in standard mode, click Deployin the upper-right corner after you commit the node. For more information, see Deploy a node.
For task O&M, see Basic O&M for auto-triggered nodes.