Find the tenant root node

Updated at:

You can use natural language commands to instruct code agents such as Qoder and CodeX to find the virtual root node of a Dataphin project. This topic describes this feature and provides usage examples.

Overview

This feature lets you find the name of a project's virtual root node by using natural language commands. Dataphin automatically generates a virtual root node for each project. This node serves as the upstream for tasks that do not have an explicitly defined upstream dependency. When you need to specify a default upstream while creating or submitting an offline task, or if you encounter an error like "node is missing an upstream dependency", you can use this feature to find the project's root node and set it as the new task's upstream.

Use cases:

  • When you create an offline task that needs an upstream dependency but has no specific predecessor, you can attach it to the project's root node.

  • When you encounter a "node is missing an upstream dependency" error, add the root node as the default upstream.

  • You need to find the project's root node name for orchestrating or troubleshooting task dependencies.

Note

This feature is read-only and does not create or modify any tasks. The system automatically generates a root node for each project, and the result is based on the retrieved project information.

Usage examples

You can describe your requirements to the agent directly in natural language. Here are some example commands:

  • "Help me find the root node name for this project. I need to set a default upstream for a new task."

  • "I got an error that a node is missing an upstream. Help me find the project's root node so I can add it."

  • "Get the virtual root node for this project that handles default dependencies."

Interaction steps:

  1. The agent typically confirms the target project with you first. If the project is not specified, the agent asks you for it.

  2. The agent typically reads information from existing tasks within the project to infer the root node's name. If the project has no tasks, the agent might create a temporary task file to retrieve the information needed to identify the root node.

  3. The agent returns the retrieved root node's name. You can then use this name as the default upstream when creating or submitting tasks.