Search for code snippets across nodes in Data Studio by keyword. Results display all matching nodes with snippet details, helping you trace the source task when target table data changes.
Scope
-
Version requirements: The code search feature is available only in DataWorks Standard Edition and later editions.
-
Search scope: You can use code search to find nodes only in Project Directory, Personal Directory/My Files, Manually Triggered Task, Manual Workflow, and Recycle Bin.
Access Code Search
Go to the Workspaces page in the DataWorks console. In the top navigation bar, select a desired region. Find the desired workspace and choose in the Actions column.
-
Open the Code Search page using one of the following methods:
-
In the left navigation bar, click
to go to Data Studio, and on the right of Project Directory and Personal Directory, click
to go to the Search Code page. -
In the left navigation bar, click
to go to the MANUALLY TRIGGERED OBJECTS page, and then click
to the right of Manual Workflow or Manually Triggered Task to go to the Search Code page.The search filter for Position is automatically selected based on your entry point.
The Code Search page provides the following filters: Position, Node Type, File Type, Owner, Modification Time, and Deployment Status (Deployed to production/Not deployed to production). Results can be sorted by Last Modified and display matching code content with highlighted keywords and file metadata.
-
Use Code Search
-
Enter search Keyword and configure search filters.
-
In the search box, enter your keywords, such as a code snippet or a table name. More specific keywords yield more accurate results.
-
You can also filter by criteria such as Code Location, Node Type, Owner, and Modified At to specify the search scope for keywords.
NoteAdvanced filters narrow down results. By default, the search covers the entire
workspace.
-
-
Press
Enterto start the search. -
View the search results.
The results list all matching nodes and code details, helping you locate the target node and trace the source of changes. You can also perform the following actions:
-
Click a node name to open its details page.
-
Click Copy Code to copy the code snippet.
-