Validate a sync task
This topic describes how to check the result of a sync task.
Prerequisites
If your sync task is a One-Time Task, you must run it first. For more information, see Execute a sync task.
Procedure
Log on to the Dataphin console.
On the Dataphin console page, select a region for your workspace and click Enter Dataphin>>.
On the Dataphin home page, click Develop.
Optional: On the Data Studio page, click the
icon next to the project name and select a data development project (Dev or Basic).If you are already in a Dev or Basic project, you do not need to select a project.
On the Data Development page, click Ad Hoc Query.
Create an ad hoc query folder.
On the Ad-hoc Query page, click the icon next to Ad-hoc Query
In the Create Folder dialog box, enter a Name for the folder.
Click OK to create the ad hoc query folder.
Create an ad hoc query file.
On the Ad-hoc Query page, click the icon next to Ad-hoc Query
On the Create File page, enter a Name and Description, and specify the Select Directory for the file.
Click OK to create the ad hoc query file.
Write the code for the ad hoc query file.
Execute the following SQL statement to check the result of the sync task.
select * from target_table_name where ds='task_scheduling_date';After you write the code, click Precompile to check whether the SQL statement is valid.
If the statement is invalid, click Format. The system automatically adjusts the format of your SQL statement.
After the statement is validated, click Execute to view the execution result of the sync task.